Solved

SQL Server 2008 R2 - Full Nightly Backup Overwrite

Posted on 2013-02-05
1
1,110 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
[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
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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
PolyServe for SQL server 13 52
TSQL Challenge... 7 59
Need to trim my database size 9 53
t-sql left join 2 32
     When we have to pass multiple rows of data to SQL Server, the developers either have to send one row at a time or come up with other workarounds to meet requirements like using XML to pass data, which is complex and tedious to use. There is a …
There have been several questions about Large Transaction Log Files in SQL Server 2008, and how to get rid of them when disk space has become critical. This article will explain how to disable full recovery and implement simple recovery that carries…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

734 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