Solved

T-sql backup database statement

Posted on 2007-12-04
2
2,022 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

If you having speed problem in loading SQL Server Management Studio, try to uncheck these options in your internet browser (IE -> Internet Options / Advanced / Security):    . Check for publisher's certificate revocation    . Check for server ce…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

696 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