Warning 161 and Error Code 32
khickman32
Posts: 7 Bronze 1
We are currently backing up 9 of our User databases to the local server and then copying the backup files to a network location. We delete the local backup files that are older than 1 day and we delete the network backup files older than 7 days. The backup files are successfully being copied to the network location and SQL Backup 7 is successfully deleting the older local backup files, but we are randomly receiving the error "Warning 161: ERASEFILES error: Failed to delete file: "\serverfoldersqlservernameackupfilename". Error code: 32 (The process cannot access the file because it is being used by another process)" when deleting the network backup files. This error occurs on random days and on random databases. There is no consistency. We have other SQL Servers using SQL Backup 7 using the same method without errors. I downloaded and ran process explorer to see what process or application was accessing the backup files and there were no locks on the file. I then manually ran the SQL Backup 7 backup job and received the same warning and error above. Any help you can provide in resolving this error 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
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8
Do you have a scheduled job that backs up the transaction log for the same set of databases, which also copies files to the same network share and also uses the ERASEFILES option? If you do, could you please post the backup command that's used to back up the transaction logs? Thanks.
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
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