You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by ying lcs <yi...@gmail.com> on 2007/03/11 19:19:25 UTC
How to relocate a subversion server
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.
Thank you.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: How to relocate a subversion server
Posted by Phil <pl...@gmail.com>.
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 <pl...@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 <yi...@gmail.com> wrote:
> >
> > On 3/11/07, Jacob Atzen <ja...@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
> >
> >
>
Re: How to relocate a subversion server
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Mar 11, 2007, at 20:10, ying lcs wrote:
> Technically speaking, tar on 1 machine/untar on aonther should
> work, right?
If you're running the same version of Subversion, and the
repositories are FSFS-based, then yes. If the repositories are BDB-
based, then I believe you must also be sure that the version of BDB
is the same, and that the processor architecture endianness is the
same. If it isn't, or you're not sure, the safe way that would always
work is to svnadmin dump the old repo on the old machine, and
svnadmin load it into a new repo on the new machine.
> I don't understand why it creates a 'trunk' directory when I check
> out like this:
> svn co file:///srv/svn/repositories/test/trunk
Because that is what Subversion does. RTFM. From "svn help checkout":
usage: checkout URL[@REV]... [PATH]
If specified, REV determines in which revision the URL is first
looked up.
If PATH is omitted, the basename of the URL will be used as
the destination. If multiple URLs are given each will be checked
out into a sub-directory of PATH, with the name of the sub-directory
being the basename of the URL.
This means that since you did not specify a path in which to
checkout, it chose the last part of the URL, which was trunk. If you
wanted to check out your trunk to a directory called foo instead, you
should use:
svn co file:///srv/svn/repositories/test/trunk foo
--
To reply to the mailing list, please use your mailer's Reply To All
function
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: How to relocate a subversion server
Posted by ying lcs <yi...@gmail.com>.
On 3/11/07, Phil <pl...@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.
>
Technically speaking, tar on 1 machine/untar on aonther should work, right?
I don't understand why it creates a 'trunk' directory when I check
out like this:
svn co file:///srv/svn/repositories/test/trunk
> On 3/11/07, ying lcs <yi...@gmail.com> wrote:
> >
> > On 3/11/07, Jacob Atzen <ja...@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
> >
> >
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: How to relocate a subversion server
Posted by Phil <pl...@gmail.com>.
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 <yi...@gmail.com> wrote:
>
> On 3/11/07, Jacob Atzen <ja...@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
>
>
Re: How to relocate a subversion server
Posted by ying lcs <yi...@gmail.com>.
On 3/11/07, Jacob Atzen <ja...@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
Re: How to relocate a subversion server
Posted by Jacob Atzen <ja...@jacobatzen.dk>.
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.
--
Cheers,
- Jacob Atzen
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org