Deleting old Log Files
SamC
Posts: 28
There are hundreds of individual SQL Backup log files accumulating somewhere under
\My Documents\...\SQL BackupIs there any automated method to retain the last week or so?
\My Documents\...\SQL BackupIs there any automated method to retain the last week or so?
Comments
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8
If you are using a script to do the backups, you could add a bit at the end to call xp_cmdshell to run a batch file to delete these files from your hard disk.
How can I keep the last backup (scheduled to be every day) and the logs (which I want to be backed up every 2 hours) from the moment I backup the full database to the moment the schedule will create another full backup file.
How can I get rid of those old files?
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8