Ticket #13 (new defect)

Opened 2 years ago

Last modified 1 year ago

Fix file locking on Windows

Reported by: chris Assigned to: chris
Priority: normal Milestone: 0.12
Component: bbackupd Version: 0.10
Keywords: windows file locking locked volume shadow copy service vss Cc:

Description

There are two locking issues on Windows: Box cannot back up open files, and while Box is backing up a file, other applications cannot open it for writing.

Changing our access method to Volume Shadow Copy Service is probably the right fix for both of these, but it only works on XP and above, and I cannot install the SDK it on my development machine. I would also like to make it work with MinGW without requiring a restrictively-licensed SDK download from Microsoft.

Please could someone use a Windows machine (XP or above, Windows Activation compliant) to download the SDK and send it to me?

Another option (workaround) might be to use the Windows command-line tools to create a shadow copy and back that up instead of the original. However, I think that would be a kluge, difficult to install, and difficult to detect and handle errors with.

Attachments

ShadowBox.bat (2.9 kB) - added by petej on 27/07/2007 03:10:43.
ShadowBox?.bat, an example of how to use Shadow Copy, vshadow.exe

Change History

26/11/2006 16:55:08 changed by chris

The SDK can be found here.

19/12/2006 07:35:17 changed by gadlen

I fetched it. It can (for now) be found here. http://lee.org/temp/Volume-Shadow-Copy-Service%20SDK-7.2-setup.exe

:-) Lee http://lee.org

19/12/2006 09:38:07 changed by chris

Got it, thanks.

27/07/2007 03:10:43 changed by petej

  • attachment ShadowBox.bat added.

ShadowBox?.bat, an example of how to use Shadow Copy, vshadow.exe

19/09/2007 23:29:35 changed by chris

  • milestone changed from 0.11 to 0.12.

Not in 0.11, sorry.