Long running backup job
Illuminations2k
Posts: 10 Bronze 2
We are running SQB 4.6.0.815 and have noticed that our T-Log backups (which are scheduled for every 15 minutes) are taking 11-17 minutes every time.
In searching the forums I did find this post: http://red-gate.com/messageboard/viewto ... light=hung
I took the steps and have reduced the amount of data in the backup tables in MSDB; however, that has not reduced the time. We issued an UPDATE STATS and DBCC DBREINDEX on the tables as well to no avail.
SQB shows that the actual backup is only taking 1-5 seconds, what could possibly be taking so long with the actual job?
I did a DBCC INPUTBUFFER on the SPID and this is what is being run:
DECLARE @exitcode int DECLARE @sqlerrorcode int exec master..sqlbackup N'-SQL "BACKUP LOGS [XXXX] TO DISK = ''\\ctac\service\sqlbackup\RedGate\XXXX\XXXXX\<AUTO>'' WITH NAME = ''<AUTO>'', DESCRIPTION = ''<AUTO>'', NO_TRUNCATE, ERASEFILES = 1, COM
Any help with this would be greatly appreciated!
Thanks!
In searching the forums I did find this post: http://red-gate.com/messageboard/viewto ... light=hung
I took the steps and have reduced the amount of data in the backup tables in MSDB; however, that has not reduced the time. We issued an UPDATE STATS and DBCC DBREINDEX on the tables as well to no avail.
SQB shows that the actual backup is only taking 1-5 seconds, what could possibly be taking so long with the actual job?
I did a DBCC INPUTBUFFER on the SPID and this is what is being run:
DECLARE @exitcode int DECLARE @sqlerrorcode int exec master..sqlbackup N'-SQL "BACKUP LOGS [XXXX] TO DISK = ''\\ctac\service\sqlbackup\RedGate\XXXX\XXXXX\<AUTO>'' WITH NAME = ''<AUTO>'', DESCRIPTION = ''<AUTO>'', NO_TRUNCATE, ERASEFILES = 1, COM
Any help with this would be greatly appreciated!
Thanks!
Comments
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8
I unchecked 'Delete SQL Backup log files' and it dropped the time from 12-15 minutes to 4 seconds. Thank you!
Just out of curiosity, why was the deleting of the local log files taking such an extraordinary amount of time? It was set for 90 days and we've only been using the product for about 1/2 of that.
Regardless, thank you for the help!
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8
What is the purpose of these files? Is it important to keep them or is there a way to turn them off?
You can't turn them off. One suggestion is to turn off the automatic deletion, and manually delete/archive the old files periodically. Or use a shorter retention period.
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
I'm just referring to the plain text files, just wanted to verify that they are only for debugging purposes, not integral to the function of the application.