regular Backup of sql database's

  • 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.

  • 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.

  • 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?

  • 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

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply