SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


regular Backup of sql database's


regular Backup of sql database's

Author
Message
montril21
montril21
Grasshopper
Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)

Group: General Forum Members
Points: 12 Visits: 11
Hi,
Can you please let me know the steps to carry out regular backup's of sql 2005 database's. The db's are small around 3 GB and frequency need to be daily. Also please explain me the "append to existing sets" or "overwrite to existing sets".
Can you explain the steps with an example as am new to sql.
homebrew01
homebrew01
SSChampion
SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)

Group: General Forum Members
Points: 13022 Visits: 9222
The easiest method is to create a Maintenance Plan, with a daily schedule. You can use the "Wizard" to step through the process. You probably should have production databases set to FULL RECOVERY and take transaction log backups every 20 minutes or so, in addition to your daily FULL backup.

I don't use backup devices or sets. I write to individual .BAK and .TRN files to a backup folder. Include a step to delete old files after X days or you will fill up your drive. Additionally, it's a good idea to get your backups into the tape rotation.

There is a lot written already about RECOVERY MODELS and BACKUPS, so do some reading, for example Gail's article: http://www.sqlservercentral.com/articles/64582/

Get those backups started today. You can always adjust them later.



montril21
montril21
Grasshopper
Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)

Group: General Forum Members
Points: 12 Visits: 11
Please let me know how do i restore under below condition for day 1 backup to be restored on 80th day

Database name: Test
Backup set name: Backup test-1
Backup set expires after- 90 days
Append to existing backup

How many .bak files gets created under above condition?
Grant Fritchey
Grant Fritchey
SSC Guru
SSC Guru (102K reputation)SSC Guru (102K reputation)SSC Guru (102K reputation)SSC Guru (102K reputation)SSC Guru (102K reputation)SSC Guru (102K reputation)SSC Guru (102K reputation)SSC Guru (102K reputation)

Group: General Forum Members
Points: 102323 Visits: 33014
Expire date doesn't determine how many days are kept. That's a marker for old style tape backup systems.

How big is this database? Keeping 90 days worth of individual backups could be a major undertaking if you've got even a moderately small database, say 50gb. 90 days of backing up that database would be 4500gb. Do you have 4tb of spare disk space sitting around? What if it's a medium sized database, say 500gb. Now the problem just got worse.

Most businesses would not want to go back 90 days and lose that much data. In general, you need to talk to your business to determine what they want the backups to do. Yes, you might keep a 90 day old backup, but you don't generally keep the intervening 89 days. My previous employer keeps a rolling set of backups available. One month and one week, offline, and the last two days online. In addition to that, they have the log backups for both days, also online for full blown disaster recovery to a point in time. For legal purposes there are also 6 month and 1 year backups mainained, but not the daily changes over all that time.

Since you're really just getting started in this, can I suggest you get a copy of my book, SQL Server 2008 Adminstration. It'll help you on the basics.

----------------------------------------------------
The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood...
Theodore Roosevelt

The Scary DBA
Author of: SQL Server Query Performance Tuning and SQL Server Execution Plans
Product Evangelist for Red Gate Software
homebrew01
homebrew01
SSChampion
SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)

Group: General Forum Members
Points: 13022 Visits: 9222
Disaster Recovery Guide
http://technet.microsoft.com/en-us/magazine/ee677581.aspx

Backups
http://msdn.microsoft.com/en-us/library/ms187510(v=SQL.90).aspx

Restoring
http://msdn.microsoft.com/en-us/library/ms177429(v=SQL.90).aspx

Backup Sets (Personally, I prefer to backup to individual files)
http://msdn.microsoft.com/en-us/library/ms191248(v=SQL.90).aspx



Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search