You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Jochen Garcke <ga...@math.TU-Berlin.DE> on 2007/02/01 16:18:24 UTC

Moving svn repository server without svnadmin

Hi,

I recently changed my workplace and I would like to move my old
repository to a repository server at my new workplace.

I know I could do this with svnadmin dump/load if I would have root
access on both servers. Which I don't.

Can I somehow move the contents of my old repository including the
history to the new one without svnadmin ?

Jochen

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Moving svn repository server without svnadmin

Posted by Lorenz <lo...@yahoo.com>.
Jochen Garcke wrote:
>Ryan Schmidt schrieb:
>> On Feb 1, 2007, at 10:18, Jochen Garcke wrote:
>> 
>>> I recently changed my workplace and I would like to move my old
>>> repository to a repository server at my new workplace.
>>>
>>> I know I could do this with svnadmin dump/load if I would have root
>>> access on both servers. Which I don't.
>[...]
>>Someone suggested svnsync. That's not really the right tool for this  
>>job. svnsync is for creating a read-only mirror of a central  
>>repository, and that's not what you're trying to do.
>[...]
>There is a setup at my new place with a server with subversion and
>apache which I intend to use, but I don't have access to that, just user
>access to "my" repo on that server.
>[...]

I don't see why svnsync would not do the job under that conditions.
Ok, it's not intended for moving a repositiory to a new server, but
...


Lorenz

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Moving svn repository server without svnadmin

Posted by Jochen Garcke <ga...@math.tu-berlin.de>.
Ryan Schmidt schrieb:
> On Feb 1, 2007, at 10:18, Jochen Garcke wrote:
> 
>> I recently changed my workplace and I would like to move my old
>> repository to a repository server at my new workplace.
>>
>> I know I could do this with svnadmin dump/load if I would have root
>> access on both servers. Which I don't.
>>
>> Can I somehow move the contents of my old repository including the
>> history to the new one without svnadmin ?
> 
> You don't need root access on the old server to dump the repo. You only
> need read access to the repo. Granted, that may only be possible for a
> limited user, such as the apache user or the svn user, depending on how
> your old repository is served.
> 
> However, you would need that same level of access to be able to get a
> copy of the entire repository from the old server.
> 
> Someone suggested you could just tar up the old repo and move it to the
> new server. That will work, provided the new server has at least as new

[...]

> 
> If you want to access the new repo via Apache, then probably an admin
> will need to set all that up, if you do not have admin access to the new
> server yourself.

Thanks all for the answers.

Maybe clarify a bit.

There is a setup at my new place with a server with subversion and
apache which I intend to use, but I don't have access to that, just user
access to "my" repo on that server. Just having a local copy on my
machine (which I could get using using the dump form the old server
(where I had admin access) and load that on my new machine) and using
that would not really work since I am out of office a fair bit and need
to access the repo over the net.

So it seems that with user tools an import with the history is not
doable. The way to do it would be asking an admin to load my dump into
the new repo using svnadmin.

Thanks,
Jochen

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Moving svn repository server without svnadmin

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Feb 1, 2007, at 10:18, Jochen Garcke wrote:

> I recently changed my workplace and I would like to move my old
> repository to a repository server at my new workplace.
>
> I know I could do this with svnadmin dump/load if I would have root
> access on both servers. Which I don't.
>
> Can I somehow move the contents of my old repository including the
> history to the new one without svnadmin ?

You don't need root access on the old server to dump the repo. You  
only need read access to the repo. Granted, that may only be possible  
for a limited user, such as the apache user or the svn user,  
depending on how your old repository is served.

However, you would need that same level of access to be able to get a  
copy of the entire repository from the old server.

Someone suggested you could just tar up the old repo and move it to  
the new server. That will work, provided the new server has at least  
as new a Subversion as the old server, and you have an FSFS  
repository. On the other hand, if you have a BDB repository, then you  
have the additional restriction that you must have the same versions  
of BDB on both servers, and both servers' processors must be of the  
same architecture. For BDB repositories, it's often best to just dump  
and load. For FSFS repositories that doesn't hurt either of course.  
Don't know what kind of repository you have? Look in the file db/fs- 
type in your repository. This file will contain the string "fsfs" if  
it's an FSFS repo, for example.

Someone suggested svnsync. That's not really the right tool for this  
job. svnsync is for creating a read-only mirror of a central  
repository, and that's not what you're trying to do.

If you want to access the new repo via Apache, then probably an admin  
will need to set all that up, if you do not have admin access to the  
new server yourself.



-- 

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: Moving svn repository server without svnadmin

Posted by Lorenz <lo...@yahoo.com>.
Jochen Garcke wrote:
>I recently changed my workplace and I would like to move my old
>repository to a repository server at my new workplace.
>
>I know I could do this with svnadmin dump/load if I would have root
>access on both servers. Which I don't.

Does that mean, that you can't create the new repository yourself but
it will be created by the admin?

>Can I somehow move the contents of my old repository including the
>history to the new one without svnadmin ?

If there is an empty repo on the new server already, you should be
able to use svnsync (havn't done that myself, so don't ask me about
details 8-)

Lorenz

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Moving svn repository server without svnadmin

Posted by Jochen Garcke <ga...@math.tu-berlin.de>.
Eric schrieb:
> At 11:18 AM 2/1/2007, Jochen Garcke wrote:
> 
> <JC>>>>>Can I somehow move the contents of my old repository including
> the history to the new one without svnadmin?<<<<<
> 
> Good morning, Jochen.
> 
> This may seem overly simplistic (not to mention perhaps dangerous) and
> just serves to expose the fact that I'm new to Subversion, but...
> 
> Can't you just do a tarball of your repository tree on the old machine
> (e.g. /usr/local/svnroot) and then untar it in the same directory on
> your new machine?

If I wanted to have a local repository on my machine, sure. But I also
need access over http when I am travelling, so it needs to be in the
subversion repository of the central machine with apache.

Jochen

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Moving svn repository server without svnadmin

Posted by Eric <sp...@scoot.netis.com>.
At 11:18 AM 2/1/2007, Jochen Garcke wrote:

<JC>>>>>Can I somehow move the contents of my old repository 
including the history to the new one without svnadmin?<<<<<

Good morning, Jochen.

This may seem overly simplistic (not to mention perhaps dangerous) 
and just serves to expose the fact that I'm new to Subversion, but...

Can't you just do a tarball of your repository tree on the old 
machine (e.g. /usr/local/svnroot) and then untar it in the same 
directory on your new machine?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org