Ticket #13 (new defect)

Opened 2 years ago

Last modified 16 months ago

Fix file locking on Windows

Reported by: chris Owned by: 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 18 months ago.
ShadowBox?.bat, an example of how to use Shadow Copy, vshadow.exe

Change History

Changed 2 years ago by chris

The SDK can be found here.

Changed 2 years ago 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

Changed 2 years ago by chris

Got it, thanks.

Changed 18 months ago by petej

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

Changed 16 months ago by chris

  • milestone changed from 0.11 to 0.12

Not in 0.11, sorry.

Note: See TracTickets for help on using tickets.