View Full Version : SVN + Volume Shadow Copy

21-05-2009, 02:58 PM
I've recently set up an elaborate way to do versioning of some documents I'm working on.

The set up is as follows:
- TortoiseSVN to create a subversion repository, which holds the important documents
- Batch script which runs SlikSVN (command line) to automatically do a Commit of changes every hour (in the background)

The problem I'm running in to is that if the file I'm working on is open, then the commit will fail because the SVN client cannot "open" the file, since it is in use.

Is there a way to use volume shadow copy (or something similar), so that even if I'm working on the file, it will commit the last saved state?

21-05-2009, 03:51 PM
You could try this:

Copy the file first using this script (and a tool from the VSS SDK), detailed here:

Then run the svn commit on the copied file.