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

Re: Berkeley is good stuff!

From: Daniel Berlin <dberlin_at_dberlin.org>
Date: 2005-07-02 03:48:10 CEST

On Sat, 2005-07-02 at 08:33 +0700, Soren 'Frank' Munch wrote:
> Ryan Schmidt wrote :
> > I was under the impression that a hot-backup is only necessary for
> > BDB repositories -- that FSFS repositories can simply be copied using
> > a normal operating system copy. In other words, the existence of hot-
> > copy for BDB is not a benefit of BDB; the necessity of using hot-copy
> > for BDB is a drawback of BDB. At least that's what the list has led
> > me to believe.
>
> But also repos running on Berkeley can be backed up with a normal operations
> like cp -Rfp or tar. The tricky question is how long we need to take the
> svn-service down, to ensure that data written to the repos during the backup
> doesn't screw up the integrity of the files.
>
> I think it is like this:
>
> 1. fsfs without using snapshot file system (or bdb by simple copying): We must
> ensure that no write operations takes place while we back up the files.

In FSFS, older revisions are immutable.
This means that the data in them won't ever be written to. The only
thing you *really* need to ensure is that the db/current file gets
copied first, so that it doesn't reference a revision file that appeared
since you started your copy.
Other than that, something like rsync should make this *very* fast.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Jul 2 03:52:21 2005

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.