Solved

Changing backup type from append to overwrite

Posted on 2006-07-02
2
383 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Introduction: I have seen many questions on EE and elsewhere, asking about how to find either gaps in lists of numbers (id field, usually) ranges of values or dates overlapping date ranges combined date ranges I thought it would be a good …
Database tuning – How to start and what to tune. This question is frequently asked by many people, both online and offline. There is no hard and fast rule-of-thumb for performance tuning, however, before beginning the tuning process one should a…
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…

705 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

11 Experts available now in Live!

Get 1:1 Help Now