Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

To INIT or NOINIT

Status
Not open for further replies.

equus2

Programmer
Mar 5, 2008
36
US
Hi,

I'm still trying to understnad the difference between a backup with INIT vs. NOINIT.

I know the BOL says that NOINIT appends, and INIT overwrites backup sets, but I'm trying to understand why you would want one or the other??

That is, what is the advantage of appending vs. not appending?

Thanks!!!

 
It all depends on your backup stategy. Here is mine.
I do a daily full db backup at 12 AM to one file.
Then at 1 AM I init my log backup file
Then at 1:30 AM I start incremental log backups that append log backups to my log backup file. (NOINIT)

So I init my log backup file once a day then append until my next full backup. At that point those log won't be used for a restore so I init my file and start over. I should also mention that before I init my file everything is written to tape.

So if I have to recover my db I restore the full db backup then roll forward with my log backup file to the point of failure.

If you don't init your backup file at some point it will become very confusing on which file to restore. Backup must be restore sequentialy.

Also if you have a very large db it may not have the room to keep more than one backup set in your file.

Does that int vs noinit make sense now?


- Paul
- If at first you don't succeed, find out if the loser gets anything.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top