Solved

SQL Server 2008 R2 - Full Nightly Backup Overwrite

Posted on 2013-02-05
1
1,082 Views
Last Modified: 2013-02-06
I'm trying to get SQL Server 2008 R2 to perform a full backup of each database on a nightly basis and overwrite the existing backup files in the folder from the previous night.

I have a maintenance plan running and the backup runs each night successfully, but the files are not being overwritten.  My maintenance plan is creating a backup file for every database as it should.

Inside of the maintenance plan dialog, I have the box checked "backup set will expire" and then I selected the radio button "after" with a value of 1 day.

What am I missing so that SQL Server 2008 R2 will overwrite the files?

Thanks
0
Comment
Question by:TacomaVA
1 Comment
 
LVL 7

Accepted Solution

by:
ded_ch earned 500 total points
ID: 38855833
in the Maintenance plan, add a "Maintanance Task" to your backup plan.
It is an option you can drag from the bottom left.

Then configure it to clear all backup files that are older than x days (in your case 1)

Add this Task to the bottom of the plan.
After a sucessful backup, the older files will then be automatically deleted.
0

Featured Post

Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

Question has a verified solution.

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

In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

685 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