Solved

T-sql backup database statement

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

by Mark Wills Attending one of Rob Farley's seminars the other day, I heard the phrase "The Accidental DBA" and fell in love with it. It got me thinking about the plight of the newcomer to SQL Server...  So if you are the accidental DBA, or, simp…
Data architecture is an important aspect in Software as a Service (SaaS) delivery model. This article is a study on the database of a single-tenant application that could be extended to support multiple tenants. The application is web-based develope…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

776 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