Solved

How do I get multiple days of full backups in SQL 2005

Posted on 2009-07-13
5
267 Views
Last Modified: 2012-05-07
I have attached a screen shot of my current maintenance plan.  I set it to overwrite but also backup set will expire after two days.  I thought that I would always have two .bak files but when I look I only have one .bak file.  How can I get two days of .bak files using maintenance plan and wizard or modifying my current plan?
System-Maintenance-Plan.gif
0
Comment
Question by:bluerodeo68
  • 2
  • 2
5 Comments
 
LVL 57

Accepted Solution

by:
Raja Jegan R earned 150 total points
ID: 24840551
Kindly check this option set in your Maintenance plan.

If backup files exist: Overwrite is selected. That means your backup files are overwritten and hence you would have a single backup at any point of time.

Kindly change this to Append so that you would store backup information of two days appended in a single backup file. If you just try to open that backup file for restore, you would be able to see two backup sets available in that.

Just try Create a Backup file for every database, so that it might help you out.
0
 

Author Comment

by:bluerodeo68
ID: 24840820
Just to clarify if I change to append will I see two independent backup files that I can choose to restore from each from a different date?  Secondly are you also suggesting I don't create a maintenance plan with two different system databases in it?
0
 

Author Comment

by:bluerodeo68
ID: 24840986
I forgot to add that it did create two separate .bak files for each system database msdb and master.  I was told I didn't need to backup the model db from another SA.
0
 
LVL 57

Assisted Solution

by:Raja Jegan R
Raja Jegan R earned 150 total points
ID: 24845119
>> Just to clarify if I change to append will I see two independent backup files that I can choose to restore from each from a different date?

If you choose Append, it will hold two different backup sets In a single backup file.

>> Secondly are you also suggesting I don't create a maintenance plan with two different system databases in it?

I agree that two different backup sets will be created one for your msdb and another for master database and I didn't meant the way you interpreted it.

>>  I was told I didn't need to backup the model db from another SA.

Kindly explain more on this as I am not able to understand what you meant.
0
 
LVL 7

Assisted Solution

by:wilje
wilje earned 100 total points
ID: 24845957
Looking at your maintenance plan setup, you are backing up the selected databases to two devices.  Each device is defined as a single file and you have the overwrite option defined.
Every time you run your backup - you get half of each database (half of msdb and half of master) in each device.  To restore your system, you would need both files that support those devices to restore a single database.
Now, if you change that option to append - the backup will append half of each database backup to each file, still requiring you to have both files to restore a single database - but now, you will have multiple backup sets in each file.  And worse, the option to expire the set just sets an expiration date - it does not actually purge the file of old backup sets.
What you should do is un-check the Backup set will expire option - since you are not going to use it.  Select the option to create a backup file for each database and validate the path where you want those files to exist.  The default will be okay for now - once you see how it works you can move the backups to a separate backup folder.
To cleanup the directory and remove old backup files, you need to add a Maintenance Cleanup Task and configure that to remove backup files (bak) from the specified directory.  You will want to remove old backups older than 2 days.
Then, you want to setup a second maintenance plan for user databases and set it up the same way.  The only difference for that plan is checking the box to create a sub-directory for each database.  Include sub-folders for the maintenance cleanup task to delete the backups in all of the user database folders.
And finally, don't forget to setup your regularly scheduled transaction log backups for the user databases.  This separate maintenance plan will only include a backup task to backup your transaction log.  You will need to add another task in your user database maintenance plan to remove old transaction log backups (trn).  I recommend starting with backups every hour.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article will provide a solution for an error that might occur installing a new SQL 2005 64-bit cluster. This article will assume that you are fully prepared to complete the installation and describes the error as it occurred durin…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question