Share via


Windows 7 Backup fails with error 0x80070020

Question

Thursday, October 14, 2010 7:24 AM

Yet another 0x80070020 error.

When trying to backup my Windows 7 host, I get the following error:

 The backup failed.  The process cannot access the file becaue it is being used by another process.  0x80070020

I have manually selected the files to back up, and removing Additional Locations -> AppData folder from the files being backed up allows it to finish.

I suspect that there's a file in that set that's preventing backups from working, either because it's in use or the permissions are wrong. Is there any way to find out which file from the .etl file? tracerpt.exe doesn't give the information and there's no information in the event log or application log about which file is causing the trouble.

All replies (18)

Wednesday, December 8, 2010 5:43 AM âś…Answered

Hi MPGeorgia,

 

The above mentioned problem can be your machine and scenario specific. Generally such failures occur because some application is causing sharing violation on files and since backup can not access those files, it fails. We have generally seen Antivirus program causing such problems. In Bhinqh case, it was a custom keybord driver and an application Chrome causing the problem.

 

Try backup shutting down any such Antivirus\possible app which can cause such problem.

 

If the problem still persists, you can use these workarounds to take backup:

 

1> You can perform the backup in safe mode. Safe mode releases all handles. Here is the link for doing operations in safe mode. http://windows.microsoft.com/en-US/windows7/Advanced-startup-options-including-safe-mode

2>  If you are trying to backup the whole drive, you can use this command from admin prompt.

Wbadmin start backup -backuptarget:<Target Drive>  -include:<The Drive To backup> -quiet ; This will take block level backup of your volume and it should not fail because of above mentioned reasons.

If you still need help, can you please collect the backup failure traces from %windir%\Logs\WindowsBackup\.etl and send them across to my mail - misingh-[email protected] (pl. remove -nospam phrase from the id to get the correct one)? 

Thanks,

Mithilesh


Thursday, October 14, 2010 8:07 AM | 1 vote

If you open services.msc is the Volume Shadow Copy service started?

 

With backups if a file is opened or in use the Volume Shadow Copy allows the item to be backed up even though its in use.

 

I know I have backed up Documents and Settings as well as Users folders in the past even when the users logged on and everything.

 

Hope this helps at all.

MCP, MCSE, MCDST, MCSA, MCT, MCITP:EA, MCITP:CST, A+, N+, CTT+, MCTS, CBP


Thursday, October 14, 2010 5:36 PM

No, it's set to manual and stopped. I'll start it and try another backup.

 

It seems odd that if the VSC service is required that it isn't already running, or started by the backup process. It's also frustrating that there are no meaningful logs generated by Windows Backup.


Thursday, October 14, 2010 5:37 PM

No, it's set to manual and stopped. I'll start it and try another backup.

The backup attempt just finished and failed in the same manner.


Tuesday, November 2, 2010 6:16 PM

Bump


Wednesday, November 3, 2010 8:12 AM

Hi Bhiqh,

Can you pl. collect backup failure traces from %windir%\Logs\WindowsBackup\.etl and send them across to my mail - misingh-[email protected] (pl. remove -nospam phrase from the id to get the correct one)? 

Thanks,

Mithilesh Singh [MSFT]


Sunday, November 7, 2010 4:45 PM

Hi Bhinqh,

I have replied you through mail suggesting the steps to resolve this issue. Let me know through mail if the issue gets resolved. Thenafter I will post the resolution here too.

Thanks,

Mithilesh[MSFT]


Friday, December 3, 2010 1:40 PM

I have having the same issue and would like to know how to resolve this issue. Can you post the resolution here?

Thanks!


Monday, December 6, 2010 7:12 PM

bhigh,

Did Mithilesh's suggested steps work?


Tuesday, December 14, 2010 1:45 AM

I am experiencing the same issue too.

Can someone help me, please?


Tuesday, December 14, 2010 5:43 AM

Can you try the above suggested steps and see if it resolves your issue?

Thanks,

Mithilesh Singh [MSFT]


Wednesday, December 15, 2010 3:52 AM

I have already tried them, but the issue continues.

Thanks,

Athaydes


Monday, December 27, 2010 12:45 AM

Hi Athaydes,

 Can you pl. collect backup failure traces from %windir%\Logs\WindowsServerBackup\.etl send them to my mail - misingh-[email protected] (pl. remove -nospam phrase from the id to get the correct one)? 

Thanks,

Mithilesh

 


Thursday, July 7, 2011 7:07 AM

I have had my W7 system for over a year, no backup problems until now, when it has started giving the 0x80070020 error message.

Surely by now Microsoft has worked out a solution.

I would add that I have neither the time nor the knowledge to try highly complicated solutions.

 


Wednesday, July 13, 2011 9:12 AM

Error 0x80070020 seems not to be uncommon. I have been running Windows 7 for two years without a problem and using the Windows backup tool but around couple of months ago the backup failed with the same error message as report by Jim CC. The frustration is not knowing what file or files are causing the problem nor if I needed to restore the image would it take me back to the current state. Like Jim CC I do not have the knowledge to run some of the possible solutions.

The backup on a laptop gives me no problems and both computers have been updated automatically.

 


Thursday, July 28, 2011 7:40 AM

Hi,

The Windows Backup 0x80070020 error is a sharing violation error, there is a file or files that have open handles to another process or processes that are locking the file or files from being copied by backup.

someone I helped with this error had the issue with his **C:\Users\Username>\AppData\Roaming\Microsoft\Windows\Cookies\index.dat **file. 

I had to use Process Monitor to find out which file was actually locked. The only way I managed to resolve it was to create a selective backup to exclude the **C:\Users\Username>\AppData\Roaming\Microsoft\Windows\Cookies **folder with that persons permission.

Just a note that it might not be that file that is locked, it could be any other file being backed up.

The Process Monitor filters I used were:

Command Line contains C:\windows\system32\svchost.exe -k SDRSVC

Result is SHARING VIOLATION

You can download Process Monitor from** here.**

http://winostips.com


Sunday, September 25, 2011 9:34 PM

I might have found the solution without any assistance from Microsoft.

I accidentally left the pc switched on but no user logged on when I went on holiday.   When I came back and logged on the backups had worked ok.   So now I make sure that the pc is on (obviously!) but no user is logged on when the backup runs.   So far it has worked ok.   It would seem that the sharing violation is with a user file, so if the user is not loggged on, the file is not in use.   Presumably you are still stuffed if you do not have separate user log-ons.

Or perhaps Microsoft has actually managed to get round to fixing this fairly important fault.

 

Jim Clark


Friday, April 22, 2016 7:49 PM

In my case the problem was fairly obvious - the volume shadow copy service was set to manual, and not started. This doesn't even seem to be a dependency of the backup service, which it surely should be? This was a system upgraded from vista 32 bit to Win7 32 bit (on a laptop), but I have no idea how that service managed to get set to manual.