[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: Joe Bell <joe.bell_at_prodeasystems.com>
Date: Thu, 18 Jun 2009 10:28:01 -0500

Thanks for that possibility as well Andy. Downtime is no concern however and the receiving host is already set up with everything it needs except the repository directory itself (i.e., all the hooks are moved over, Apache configuration, databases, viewvc, SVN 1.6, etc.) - As I mentioned I can't see any reason why rsync (or even tgz the repo) wouldn't work.

Joe

-----Original Message-----
From: Andy Levy [mailto:andy.levy_at_gmail.com]
Sent: Thursday, June 18, 2009 10:24 AM
To: Joe Bell
Cc: users_at_subversion.tigris.org
Subject: Re: Moving a repository via rsync

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.

This message is confidential to Prodea Systems, Inc unless otherwise indicated
or apparent from its nature. This message is directed to the intended recipient
only, who may be readily determined by the sender of this message and its
contents. If the reader of this message is not the intended recipient, or an
employee or agent responsible for delivering this message to the intended
recipient:(a)any dissemination or copying of this message is strictly
prohibited; and(b)immediately notify the sender by return message and destroy
any copies of this message in any form(electronic, paper or otherwise) that you
have.The delivery of this message and its information is neither intended to be
nor constitutes a disclosure or waiver of any trade secrets, intellectual
property, attorney work product, or attorney-client communications. The
authority of the individual sending this message to legally bind Prodea Systems
is neither apparent nor implied,and must be independently verified.

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

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