?
Solved

SQL 2005 Backup to network location, with multiple fulls and tlogs

Posted on 2010-08-27
9
Medium Priority
?
338 Views
Last Modified: 2012-05-10
All,

I am backing up my DB and t-logs to backup devices that refer to a network location (UNC.) They work well.

Each new daily full backup overwites the previous file.  This leaves me in an bad spot if the SQL server catches fire during the backup process, among other weaknesses.

What I'd prefer to do is backup the DB to a different file every day of the week, repeating.  So every Monday I'd back up to the Monday.bak.  If sever catches fire during this process, I restore Sunday.bak. Since the Monday.bak didn't complete, I should still have the t-logs running since Sunday.bak, right?

I am able to do this with multiple backup jobs pointing to multiple backup devices.  This is much work when expanded to include all of our DB across all our servers.

Is there a canned plan that can accomodate what we want?

Thanks in advance.

0
Comment
Question by:AndrewW5
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 4

Expert Comment

by:pbarry1
ID: 33547206
Hi,

Yes, just use a Backup Maintenance Plan (use the Maintenance Plan Wizard under "Management / Maintenance Plan) in SQL Server Management Studio.

You can configure the retention period, etc...
0
 
LVL 4

Expert Comment

by:pbarry1
ID: 33547217
One thing to consider: make sure you have the latest SP installed.  Previous versions of SQL 2005 were very messy for these kind of maintenance plans.
0
 
LVL 4

Author Comment

by:AndrewW5
ID: 33547242
I have SP3 installed.  

I couldn't figure out how to apply retention period for my purposes.  In tests it just overwrote the same file.
0
Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

 
LVL 4

Accepted Solution

by:
pbarry1 earned 2000 total points
ID: 33547273
The trick is to let SQL Server generate the filename (unless you really need to use specific names).  It will track which files it needs to delete or not.  

Do you really need to use specific names?
0
 
LVL 4

Author Comment

by:AndrewW5
ID: 33547286
No, I don't at all.  Let me try that!
0
 
LVL 4

Author Comment

by:AndrewW5
ID: 33547310
It requires me to set a file name.  I can't put a path without a file name in either Backup Devices or in Select Backup Destination. I must be going about this in the wrong way?
0
 
LVL 4

Author Comment

by:AndrewW5
ID: 33547345
I'm in the plan wizard now.  It may be what I needed.
0
 
LVL 4

Assisted Solution

by:pbarry1
pbarry1 earned 2000 total points
ID: 33547372
Yes, don't use a backup device.  It won't do what you want to use.  Here's a summary of what to set in the Maintenance Plan:

Task "Backup Database":
- Backup Type: FULL
- Database(s): All databases (or the ones you want)
- Backup to Disk
- Create a backup file for every database
   - (Personnaly, I use "Create a sub-directory for each database)
   - Enter the root folder where you want SQL to backup your databases
Click OK

Task "Maintenance Clean up"
- Backups files
- File location: "Search folder and delete files bases on an extension" enter the root folder specified above and the extension
- Enter the aging to use.
0
 
LVL 4

Expert Comment

by:pbarry1
ID: 33547386
And do the same for your LOG backups...  (either in a subplan or in another maintenance plan).
0

Featured Post

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

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

I am showing a way to read/import the excel data in table using SQL server 2005... Suppose there is an Excel file "Book1" at location "C:\temp" with column "First Name" and "Last Name". Now to import this Excel data into the table, we will use…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

777 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