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

Re: Moving an existing Repository to a newly created repository

From: Geoff Hoffman <ghoffman_at_cardinalpath.com>
Date: Fri, 24 Jun 2011 15:06:44 -0700

On Fri, Jun 24, 2011 at 2:28 PM, Tech Geek <techgeek12345_at_gmail.com> wrote:

> > You should be able to use regular old mv on the command line for this.
> So,
> svadmin create /var/lib/svn/Projects # Create new repo Projects
> mv /var/lib/svn/ProjectA A # Rename ProjectA to A
> and then?
> how do I move repository "A" under "Projects" repository?
>

Actually, trick question -- I was about to say svn copy -- but you can't use
svn copy between two different repositories, instead:

You use the *svnadmin dump* command to generate the dump data, and *svnadmin
load* to populate a new repository with it (see the section called
“Migrating a Repository”<http://svnbook.red-bean.com/en/1.1/ch05s03.html#svn-ch-5-sect-3.5>
).
Received on 2011-06-25 00:07:23 CEST

This is an archived mail posted to the Subversion Users mailing list.