SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


My backup keeps growing???


My backup keeps growing???

Author
Message
jbalbo
jbalbo
SSChasing Mays
SSChasing Mays (621 reputation)SSChasing Mays (621 reputation)SSChasing Mays (621 reputation)SSChasing Mays (621 reputation)SSChasing Mays (621 reputation)SSChasing Mays (621 reputation)SSChasing Mays (621 reputation)SSChasing Mays (621 reputation)

Group: General Forum Members
Points: 621 Visits: 668
Hi,

I just started doing this and confused why the backup grows by a gig plus a day...

I really don't need incrementals and it's not set as that, its just a backup of helpdesk tickets...

I only want an overwrite every night. I assume its the transaction logs?

I read something about adding INIT?

ANy way this is what I have if anyone see's ssomething odd??

Thanks
Joe

BACKUP DATABASE [servicedesk] TO DISK = N'D:\SQLBackup\servicedesk-nightly.bak' WITH NOFORMAT, NOINIT, NAME = N'servicedesk-Full Database Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10
GO
Adi Cohn
Adi Cohn
Hall of Fame
Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)

Group: General Forum Members
Points: 3707 Visits: 6512
In your backup command you use the option NOINIT. This instructs the server not to overwrite the backup file, so each day you keep the old backups and then you add the new backup. If you'll change the command and instead on NOINIT you'll specify INIT, it will overwrite the backup on a daily bases instead of adding the new backup to the old one.

Adi

--------------------------------------------------------------
To know how to ask questions and increase the chances of getting asnwers:
http://www.sqlservercentral.com/articles/Best+Practices/61537/

For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
jbalbo
jbalbo
SSChasing Mays
SSChasing Mays (621 reputation)SSChasing Mays (621 reputation)SSChasing Mays (621 reputation)SSChasing Mays (621 reputation)SSChasing Mays (621 reputation)SSChasing Mays (621 reputation)SSChasing Mays (621 reputation)SSChasing Mays (621 reputation)

Group: General Forum Members
Points: 621 Visits: 668
Thanks Adi...

WOW I feel dumb!!
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search