Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

SQL Server 2008 R2 - Full Nightly Backup Overwrite

Posted on 2013-02-05
1
Medium Priority
?
1,241 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 2000 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 Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I have written a PowerShell script to "walk" the security structure of each SQL instance to find:         Each Login (Windows or SQL)             * Its Server Roles             * Every database to which the login is mapped             * The associated "Database User" for this …
Naughty Me. While I was changing the database name from DB1 to DB_PROD1 (yep it's not real database name ^v^), I changed the database name and notified my application fellows that I did it. They turn on the application, and everything is working. A …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

722 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