Solved

Changing backup type from append to overwrite

Posted on 2006-07-02
2
396 Views
Last Modified: 2013-12-03
I have an SQL server with around 15 databases that have been setup with individual backup jobs for each day of the week - so there are around 75 backup jobs.

The backups are set to backup to disk, these files are then separately backed up to tape. Each database is backed up to a file for the day so that they can go back 5 days without having to go to tape.

The person who set the jobs up chose the append option rather than the overwrite option, and the server is now running out of disk space.

Is there any way to change an existing job to overwrite rather than append.

The code in enterprise manager doesn't seem any different either way:

BACKUP DATABASE [EXAMPLE] TO  DISK = N'D:\BACKUP\EXAMPLE\FRIDAY\EXAMPLE' WITH  INIT ,  NOUNLOAD ,  NAME = N'EXAMPLE FRIDAY backup',  NOSKIP ,  STATS = 10,  DESCRIPTION = N'EXAMPLE FRIDAY backup',  NOFORMAT

I would rather find a nice way to change it rather than having to reschedule 75 jobs for them.


A
0
Comment
Question by:arrowtech
2 Comments
 
LVL 65

Accepted Solution

by:
rockiroads earned 500 total points
ID: 17029233
Format implies SKIP, and u have NOSKIP - this may be it

NOSKIP
Instructs the BACKUP statement to check the expiration date of all backup sets on the media before allowing them to be overwritten. This is the default behavior. For information about the interactions between { INIT | NOINIT } and { NOSKIP | SKIP }, see the Remarks section.

SKIP
Disables the checking of backup set expiration and name that is usually performed by the BACKUP statement to prevent overwrites of backup sets. For information about the interactions between { INIT | NOINIT } and { NOSKIP | SKIP }, see the Remarks section.



More info found http://msdn2.microsoft.com/en-us/library/ms186865.aspx

0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 17035086
From BOL, this is the cause (no points please as it confirms the previous comment):

INIT

Specifies that all backup sets should be overwritten, but preserves the media header. If INIT is specified, any existing backup set data on that device is overwritten.

The backup media is not overwritten if any one of the following conditions is met:

· All backup sets on the media have not yet expired. For more information, see the EXPIREDATE and RETAINDAYS options.

· The backup set name given in the BACKUP statement, if provided, does not match the name on the backup media. For more information, see the NAME clause.

Use the SKIP option to override these checks. For more information about interactions when using SKIP, NOSKIP, INIT, and NOINIT, see the Remarks section.

Note  If the backup media is password protected, SQL Server does not write to the media unless the media password is supplied. This check is not overridden by the SKIP option. Password-protected media may be overwritten only by reformatting it. For more information, see the FORMAT option.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Help on VBSCript Font and color 1 67
Need Help Entering Data For Personnel in Excel Workbook 12 91
make top menus bigger font 3 54
query returning everything 11 87
CCModeler offers a way to enter basic information like entities, attributes and relationships and export them as yEd or erviz diagram. It also can import existing Access or SQL Server tables with relationships.
Read about achieving the basic levels of HRIS security in the workplace.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

932 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now