[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: SVN + Shadow Copy

From: Nico Kadel-Garcia <nkadel_at_gmail.com>
Date: Tue, 31 Jul 2012 06:01:25 -0400

On Tue, Jul 31, 2012 at 5:31 AM, Mat Booth <mat.booth_at_wandisco.com> wrote:
> On 30 July 2012 20:52, Fernando Gomes <Fernando.Gomes_at_grupospring.com> wrote:
>> Hello all,
>>
>> I am a rather experienced developer and I’m currently trying to use SVN to back up a batch of files automatically every X hours. The problem is that some of the files are open and the commit fails entirely.
>> I have managed to invoke a non-persistent Shadow Copy over the volume but since I am not using a windows server but windows 7 the shadow copy is read-only. (I am using the vscsc.exe variant of the Shadow Copy SDK from Microsoft).
>>
>> Everything would work just fine if this Shadow Copy was write-enabled because the .svn folder files cannot be edited and because so the script (running "svn add" or "svn commit") cannot complete.
>>
>> Has anyone tried this scenario before? If so is there any way to invoke a simple "svn commit" over open files (using shadow copy or not) on an non-server based operating system?
>>
>> Thank you for any thoughts,
>>
>> Fernando M. A. Gomes
>>
>
>
> Subversion is not a backup system. Usually you would arrange for a
> separate system to backup your Subversion repositories.
>
> I can't help feeling there is a better tool out there for your use-case.

Matt, it looks like he wants to back up working copies, not
repositories. Fernando, if you can leave the working copy somewhere
else and shadow copy your relevant source material to *that*, I think
you'd be in better shape.

"Files being open" and thus unable to be copied is a typical Windows
problem in an ative system. It's potentially exacerbated if you use
svn:keywords, and the files are expected to be edited dynamically when
committted.

It's an interesting problem, and understandable. For pure backup,
rather than long-term source control, I've used rsnapshot and variants
of it. And for snapshotting Windows based filesystems I've made sure
to export them via CIFS and expose them via a more sane filesystem
structure. I don't necessarily get to copy those locked files, but it
doesn't block the whole backup procedure.
Received on 2012-07-31 12:02:00 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.