Problem with erasing old backup files
Markus Bohse
Posts: 3
Hello everybody,
I'm using SQL Backup vers 5.3.0.178. From inside a stored procedure I call sqlbackup to make backup, copy to network share, remove local files older than 1 day and remove rmote files older than 1 day. While the remote files are deleted succefully the local files don't. I tried playing around with the FILEOPTIONS parameter but so far without success.
Here's my statement:
EXEC master..sqlbackup -SQL "BACKUP DATABASES [model]
TO DISK = 'E:\\MSSQL\BACKUP\\model\<AUTO>'
WITH NAME = '<AUTO>',
DESCRIPTION = '<AUTO>',
COMPRESSION = 2,
COPYTO = '\\Server1\Backups$\model',
ERASEFILES_REMOTE = 1,
ERASEFILES = 1,
FILEOPTIONS = 3,
THREADS = 1"
Any idea how I can get this to work ?
Thanks in advance
Markus
I'm using SQL Backup vers 5.3.0.178. From inside a stored procedure I call sqlbackup to make backup, copy to network share, remove local files older than 1 day and remove rmote files older than 1 day. While the remote files are deleted succefully the local files don't. I tried playing around with the FILEOPTIONS parameter but so far without success.
Here's my statement:
EXEC master..sqlbackup -SQL "BACKUP DATABASES [model]
TO DISK = 'E:\\MSSQL\BACKUP\\model\<AUTO>'
WITH NAME = '<AUTO>',
DESCRIPTION = '<AUTO>',
COMPRESSION = 2,
COPYTO = '\\Server1\Backups$\model',
ERASEFILES_REMOTE = 1,
ERASEFILES = 1,
FILEOPTIONS = 3,
THREADS = 1"
Any idea how I can get this to work ?
Thanks in advance
Markus
Comments
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8
Thanks Markus