August 11, 2016 at 1:58 pm
I have been running this Backup script for several years but yesterday I had to transfer the database to another server, so I also copied the backup script and tasks from the old server to the new server, but now the hourly backups are spending instead of over writing the destination file. The only thing that changed in the script was the location of the database. Here is the script I am using.
BACKUP DATABASE [Cencon] TO DISK = N'C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Backup\Cencon SQL Backup hourly.bak' WITH NOFORMAT, NOINIT, NAME = N'Cencon-Full Database Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10
GO
Any help would be appreciated
Thank You
Michael D. Winn
August 11, 2016 at 2:04 pm
it's an easy fix.
change the NOINIT TO INIT
that is append vs create/overwrite.
mwinn (8/11/2016)
I have been running this Backup script for several years but yesterday I had to transfer the database to another server, so I also copied the backup script and tasks from the old server to the new server, but now the hourly backups are spending instead of over writing the destination file. The only thing that changed in the script was the location of the database. Here is the script I am using.BACKUP DATABASE [Cencon] TO DISK = N'C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Backup\Cencon SQL Backup hourly.bak' WITH NOFORMAT, NOINIT, NAME = N'Cencon-Full Database Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10
GO
Any help would be appreciated
Thank You
Michael D. Winn
Lowell
August 11, 2016 at 2:11 pm
Thanks, I will try that, not sure why it worked for all these years prior to yesterday though.
August 11, 2016 at 11:05 pm
mwinn (8/11/2016)
Thanks, I will try that, not sure why it worked for all these years prior to yesterday though.
To be honest, it couldn't have UNLESS you changed the file name each time, which I strongly recommend, BTW.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply