Solved

T-sql backup database statement

Posted on 2007-12-04
2
2,021 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
[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
  • 2
2 Comments
 
LVL 25

Accepted Solution

by:
imitchie earned 500 total points
ID: 20409631
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
ID: 20409637
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
kill process lock Sql server 9 79
Query to return total 6 26
Need to find substring in SQL 5 52
Better way to filter date  - Query 5 45
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 this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

739 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