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

Re: SVN backup with lvm snapshots and rsync

From: Nico Kadel-Garcia <nkadel_at_gmail.com>
Date: Tue, 14 Feb 2012 14:29:11 -0500

On Tue, Feb 14, 2012 at 2:11 PM, Harry Bullen <hbullen_at_gmail.com> wrote:
> I'm looking at using lvm snapshots and rsync to back up a bunch of svn
> repositories every night.  The repositories total about 200GB (some
> people might have committed movies to svn but I may not fix this)
> which is why I want to do this instead of svn hotcopy, which will have
> to copy all 200GB every day.  I wanted to know if their is any danger
> from doing this, and if anyone might have some advice for me.
> Thank you.

LVM snapshots do not guarantee completion of commits that are in
progress when the snapshot has occurred, even if it's complete the
filesystem is concerned, because it may not yet have been written to
*dsk*. ve effectively used the stunt you describe for MySQL backups,
but always made sure to *shut down* the database and "sync" the
before LVM snapshotting, re-activating the backup, and doing this backup.

For a big envornmnent, rather than trying to outsmart things yourself,
may I suggest considering Wandisco's multi-homed commercial system to
avoid any skew between the primary and locally available secondary
servers? And if that's not feasible, visit the idea of svnsync mirrors
with configuration files transferred via a different channel for
potential merging and activation?

> --------------------------------------
> Harry William Bullen IV
Received on 2012-02-14 20:29:46 CET

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.