SVN backup with lvm snapshots and rsync

2012-02-14 Thread Harry Bullen
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.

--
Harry William Bullen IV


Re: SVN backup with lvm snapshots and rsync

2012-02-15 Thread Harry Bullen
On Wed, Feb 15, 2012 at 6:24 AM, Stefan Sperling  wrote:
> On Wed, Feb 15, 2012 at 03:02:04AM +0200, Daniel Shahaf wrote:
>> Stefan Sperling wrote on Tue, Feb 14, 2012 at 23:19:58 +0100:
>> > Until then, svnsync or svnadmin dump/load are the only officially
>> > supported incremental backup solutions. But, as Daniel explained,
>> > 'rsync' followed by 'svnadmin recover' produces valid copies of
>> > FSFS repositories, too.
>>
>> I didn't say that, Stefan, since it's not true.  rsync is not safe if
>> the SQLite db is being read or written whilst rsync runs.
>
> Ah, true. I keep forgetting about the rep cache...
> I'm sorry if you felt I was mis-attributing this to you.
>
> All I can say in my defense is that the whole point of adding incremental
> hotcopy support (which of course handles the rep-cache properly) was to
> finally stop worrying and forget about such details :)

Thank you for this advice.  From what I gather  rep-cache.db, can be
regenerated by svn.  If I used rsync and excluded the rep-cache.db
would I then want to run 'svnadmin recover' on these backup or is
rep-cache.db regenerated automatically when the repository is used?