Solved

T-sql backup database statement

Posted on 2007-12-04
2
2,015 Views
Last Modified: 2011-10-03
Below is my backup statement:

BACKUP DATABASE [Master] TO  [MasterDevice] WITH  
RETAINDAYS = 5, NOFORMAT, INIT,  NAME = N'Master-FullBackup', SKIP, NOREWIND,
NOUNLOAD,  STATS = 10
GO

I need to know if after5 days will the file get initialized and contains only backup set <2 days? Can I know what is mean with an option SKIP,NOREWIND,NOUNLOAD
0
Comment
Question by:motioneye
  • 2
2 Comments
 
LVL 25

Accepted Solution

by:
imitchie earned 500 total points
Comment Utility
Check SQL Books Online for "BACKUP DATABASE"

SKIP is only used if INIT is also used.
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.

NOREWIND (forces NOUNLOAD) and NOUNLOAD are used for tape systems, and prevent the tape from rewinding and unloading. They bear no relevance unless you are backing to tapes.
0
 
LVL 25

Assisted Solution

by:imitchie
imitchie earned 500 total points
Comment Utility
If it's the same backup set name, INIT + SKIP will cause it to go to the very front of your file, so this will be the only backup in it. (no others will remain)
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

by Mark Wills PIVOT is a great facility and solves many an EAV (Entity - Attribute - Value) type transformation where we need the information held as data within a column to become columns in their own right. Now, in some cases that is relatively…
In SQL Server, when rows are selected from a table, does it retrieve data in the order in which it is inserted?  Many believe this is the case. Let us try to examine for ourselves with an example. To get started, use the following script, wh…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

772 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