Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

regular Backup of sql database's Expand / Collapse
Author
Message
Posted Thursday, February 3, 2011 1:39 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, July 14, 2011 9:28 AM
Points: 4, 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.
Post #1058351
Posted Thursday, February 3, 2011 1:59 PM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Yesterday @ 7:48 PM
Points: 2,834, Visits: 8,542
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.



Post #1058366
Posted Thursday, February 3, 2011 3:09 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, July 14, 2011 9:28 AM
Points: 4, 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?
Post #1058414
Posted Friday, February 4, 2011 6:48 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Tuesday, November 18, 2014 3:50 AM
Points: 13,991, Visits: 28,373
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
SQL Server 2012 Query Performance Tuning
SQL Server 2008 Query Performance Tuning Distilled
and
SQL Server Execution Plans

Product Evangelist for Red Gate Software
Post #1058696
Posted Friday, February 4, 2011 10:01 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Yesterday @ 7:48 PM
Points: 2,834, Visits: 8,542
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



Post #1058856
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse