How can we help you today? How can we help you today?
TaylorT
petey wrote: If it helps, the most common cause of the delay is when you: - backup a lot of databases using the BACKUP DATABASES syntax - to the same folder - and use the ERASEFILES option to delete older backup files In these situations, there will be a lot of files in that single folder, and after every database backup, SQL Backup will scan every single file in that folder to determine which file it needs to delete. This issue will be compounded if you back up to a network share, as the scanning process will take even longer. What you can do is to place each database's backup files in its own separate folder using the <DATABASE> tag e.g. instead of EXEC master..sqlbackup '-sql "BACKUP DATABASES &#91;*&#93; TO DISK = &#91;\\netshare\backups\&lt;AUTO&gt;&#93;... " ' use EXEC master..sqlbackup '-sql "BACKUP DATABASES &#91;*&#93; TO DISK = &#91;\\netshare\backups\&lt;DATABASE&gt;\&lt;AUTO&gt;&#93;... " ' Now, SQL Backup needs to scan only that specific database's folder to determine which file(s) to delete, which speeds things up significantly. If that is still too slow, you can add another subfolder based on the backup type using the <TYPE> tag e.g. EXEC master..sqlbackup '-sql "BACKUP DATABASES &#91;*&#93; TO DISK = &#91;\\netshare\backups\&lt;DATABASE&gt;\&lt;TYPE&gt;\&lt;AUTO&gt;&#93;... " ' Brilliant post Petey. With over 400 databases things were taking forever. Now I have them all in their own folders. Thanks for saving me a lot of time. / comments
petey wrote: If it helps, the most common cause of the delay is when you: - backup a lot of databases using the BACKUP DATABASES syntax - to the same folder - and use the ERASEFILES option to de...
0 votes