INIT
Specifies that all backup sets should be overwritten, but preserves the media header. If INIT is specified, any existing backup set data on that device is overwritten
TSQL would like this:
BACKUP DATABASE [DBNAME]
TO [BACKUPDEVICE]
WITH INIT ,
NOUNLOAD ,
NAME = N' RentRoll',
NOSKIP ,
STATS = 10,
NOFORMAT
I am sorry, i will be more specific with my question.
I need to keep 2 days of backups on the server. So now, the server backs up the DBs, which make 3 days of back ups. Than after the backups, it deletes the oldest days of backups.
I just want to delete the oldest day first, and than run the backup.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.