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

Re: How to relocate a subversion server

From: Phil <plabonte_at_gmail.com>
Date: 2007-03-13 20:05:06 CET

so basically I do an svndump and then I use sed to remove the trunk
directory like this:

sed 's/trunk\///g' dumpfile > dumpfile2

The above command will remove any entries that have "trunk\" from the file
'dumpfile'.
You may have to be more creative with your sed syntax...

Let me know how it goes...

My dumpfile was 23GB so the beauty of this command is that it does not
matter what the file size is.
You can also send the output back to same file if you are 100% certain of
your sed syntax.

On 3/11/07, Phil <plabonte@gmail.com> wrote:
>
> I had to do this myself...
> Move from machine A to machine B with svnadmin dump, and I had to remove
> the trunk... I used sed with my dumpfile... If you need to know how to do
> this email me and I will send you the syntax... I do not remember it off the
> top of my head... I have it at work and can email you tomorrow.
>
> On 3/11/07, ying lcs <yinglcs@gmail.com> wrote:
> >
> > On 3/11/07, Jacob Atzen <jacob@jacobatzen.dk> wrote:
> > > On Sun, Mar 11, 2007 at 02:19:25PM -0500, ying lcs wrote:
> > > > Hi,
> > > > I setup a machine as my subversion server (machine A), and now I
> > want
> > > > to move everything to anther machine (machine B). Can I just tar
> > > > everything under /srv/svn from machine A and then untar in at
> > machine
> > > > B ? They are running the same version of subversion.
> > >
> > > Most likely you can if you're running the same software. Though I'd
> > > recommend doing a svnadmin dump followed by a svnadmin load. Check the
> > > manual for further instructions.
> > >
> > Thanks. But now when I try to check out , like this:
> > svn co file:///srv/svn/repositories/test/trunk
> >
> > subversion will create a subdirectory 'trunk' in my current directory
> > and under which put my source in it.
> >
> > I don't think it was doing that before. How can I fix that?
> >
> > thank you.
> >
> >
> > > --
> > > Cheers,
> > > - Jacob Atzen
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> > For additional commands, e-mail: users-help@subversion.tigris.org
> >
> >
>
Received on Tue Mar 13 20:05:36 2007

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.