Log shipping jobs not deleting old .sqb files in 6.3
astreet
Posts: 28
Log shipping jobs are not deleting old .sqb files from the log shipping share using FILEOPTIONS = 3. My restore log command has Erasefiles = 4 and Fileoptions =3 which should delete files older that 4 days. All of my od log files have been applied to my standby database. If I set the Fileoptions=1 the deletion of old files works correctly. Any idea to this issue?
Comments
For the backup job step, FILEOPTIONS 3 should have the same effect as FILEOPTIONS 1 on the COPYTO directory. I have raised this as a bug and will look into this.
However, if you created the log shipping jobs via the GUI then the restore job step will contain a MOVETO command, which takes processed files and moves them to another directory out of reach of the backup job's erase files functionality.
As a temporary workaround you can create an additional job step to perform the file purge. The following syntax may be of use:
Development
Red-Gate Software