Comments
2 comments
-
The syntax looks correct i.e. you have ERASEFILES = 1 (erase files of the same database older than 1 day), and FILEOPTIONS = 1 (erase old files in the MOVETO folder).
Does the SQL Backup Agent service startup account have rights to delete files in the MOVETO folder (E:\RedGateSQLBackup\DBMonitor\RestoredTLogs)? Do the SQL Backup logs record any warnings? The default folder where the logs are stored is C:\Documents and Settings\All Users\Application Data\Red Gate\SQL Backup\Log\<instance name>.
Thanks. -
Forgive me, I had inconsistently applied the syntax on different databases' restore jobs. Deleting this thread might be best for everyone involved! :oops:
Add comment
Please sign in to leave a comment.
I'm running the below code to restore the t-logs:
The files in the directory specified in the MOVETO clause are piling up. What part of the ERASEFILES parameter am I getting wrong?