Infinite copy loop
randyv
Posts: 166
Sorry to bring this one back up, but SQL Backup 6 is flooding our exchange server and I believe there is a bug in the product.
Here is the issue - I DO want the resilience feature.
But... I do not want a never-ending flood of copy failed messages if the backup file to copy has been removed. And I assert this is the bug in the product.
For example; I have a backup job set for a full backup. I make a copy to a local drive and I have a copy to the network share. If the backups made previously are over 5 days old, the file is removed. What appears to be happening, based on messages is that a file is not getting copied over the network (for some reason), and the retries are occuring over and over and over... indefinitely. Then 5 days downstream the local file is deleted, and now it can NEVER be copied to the network.
I'm sure you don't intend it to be that way, but that is what appears to be happening based on the copy failed messages I keep getting.
SQL Backup file copy process failed to copy "M:\LDF BACKUP\LOG_(local)_DBA_20100603_163000.sqb" to "\\whaley10\Backups\WFR-DailyBackups\Whaley08\LOG_(local)_DBA_20100603_163000.sqb"
Last attempt started on 6/4/2010 1:31:20 PM, and failed with the error "COPYTO error: Unable to copy M:\LDF BACKUP\LOG_(local)_DBA_20100603_163000.sqb to \\whaley10\Backups\WFR-DailyBackups\Whaley08\LOG_(local)_DBA_20100603_163000.sqb (Source file does not exist: M:\LDF BACKUP\LOG_(local)_DBA_20100603_163000.sqb).
"
61 attempts have already been made to copy this file.
Here is the issue - I DO want the resilience feature.
But... I do not want a never-ending flood of copy failed messages if the backup file to copy has been removed. And I assert this is the bug in the product.
For example; I have a backup job set for a full backup. I make a copy to a local drive and I have a copy to the network share. If the backups made previously are over 5 days old, the file is removed. What appears to be happening, based on messages is that a file is not getting copied over the network (for some reason), and the retries are occuring over and over and over... indefinitely. Then 5 days downstream the local file is deleted, and now it can NEVER be copied to the network.
I'm sure you don't intend it to be that way, but that is what appears to be happening based on the copy failed messages I keep getting.
SQL Backup file copy process failed to copy "M:\LDF BACKUP\LOG_(local)_DBA_20100603_163000.sqb" to "\\whaley10\Backups\WFR-DailyBackups\Whaley08\LOG_(local)_DBA_20100603_163000.sqb"
Last attempt started on 6/4/2010 1:31:20 PM, and failed with the error "COPYTO error: Unable to copy M:\LDF BACKUP\LOG_(local)_DBA_20100603_163000.sqb to \\whaley10\Backups\WFR-DailyBackups\Whaley08\LOG_(local)_DBA_20100603_163000.sqb (Source file does not exist: M:\LDF BACKUP\LOG_(local)_DBA_20100603_163000.sqb).
"
61 attempts have already been made to copy this file.
What we do in life echoes in eternity <><
Randy Volters
Randy Volters
Comments
exec master..sqbdata 'DELETE FROM backupfiles_copylist WHERE status <> ''S '''
Randy Volters
When you execute the command in your second post, does the problem cease?
It sounds like, due to the fact the jobs are staying in your log copy queue for so long, that you may have network problems which mean that the files are not able to copy. If you are able to fix this problem then the 'spam' issue should go away.
Otherwise the only way to solve your 'spam' problem would be to use the USESIMPLECOPY keyword in the command which cancels the network resilience features and will only send you one email when it fails.
The idea of reducing the number of emails in this type of case is being looked into by our development team for inclusion in the product.
However, there may be cases where the file is located in a remote share, in which case a temporary network disruption should not immediately abort the copy process. A compromise may be to abort the copy process only if the source file is a local file.
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8
Thanks
Why was SQL Backup not able to copy the files originally?
Thanks.
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8