candera / hobocopy

An open source backup tool for Windows
http://candera.github.com/hobocopy/
MIT License
176 stars 52 forks source link

Copy fails with error 33 (another process has locked a portion of the file) #35

Open candera opened 13 years ago

candera commented 13 years ago

Background

A user reports (email threads at http://groups.google.com/group/hobocopy/browse_thread/thread/bcf92b74dc30dbb4 and http://groups.google.com/group/hobocopy/browse_thread/thread/36b6ea19544a0c00) that when copying with

hobocopy.exe "c:\users\us041370\my documents\outlook files" "c:\TESTCopy" archives2008-2010.pst

hobocopy fails with error

Copy of file failed with error The process cannot access the file because another process has locked a portion of the file. (Error number 33) on file \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy17\users\us041370\my documents\outlook files\PersonalFolders.pst

See Also

hobocopy should not have any problems copying files that are locked.

Tech Notes

There must be something locking the shadow files. I'll write a custom version that launches handle.exe with the offending path as an argument so that we can figure out what the problem is.

candera commented 13 years ago

Branch build made available. Instructions for how to use it here: http://groups.google.com/group/hobocopy/browse_thread/thread/bcf92b74dc30dbb4#msg_2466ed5fb7af57be