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

Re: Moving a repository via rsync

From: Andy Levy <andy.levy_at_gmail.com>
Date: Thu, 18 Jun 2009 11:24:29 -0400

On Thu, Jun 18, 2009 at 11:00, Joe Bell<joe.bell_at_prodeasystems.com> wrote:
> Hi all:
>
>
>
> I need to move a Subversion repository from one host to another (A to B) and
> once that is complete, shutdown A and then rename B to A (to preserve the
> hostname, etc.).  My first thought was to use svnadmin dump, transfer the
> file, and then load with –force-uuid, however, this was painfully slow and I
> got stopped by a checksum error on the load.
>
>
>
> My question is, can I just shutdown access to the repository (no clients
> reading/writing to it), and then rsync the repository over to the new
> machine?  It’s a lot faster than dump/load and I can’t currently see why
> that won’t work just fine.

Use svnsync to make the new server a mirror of the old, then shut down
the old one. This way, people can keep committing to the old server &
the transactions will be replayed on the new one automatically (as
long as you set up svnsync in a post-commit hook), for minimal
downtime.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2363236

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-06-18 17:25:25 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.