Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the fastest and safest way to move an SVN repository from one host to another?

Tags:

linux

scp

svn

I have two SVN repositories about 1.5 GB each that I need to move from one CentOS 5.4 Linux machine to another. They are up into the three to four thousand revision range.

I could simply scp -r them over. I did try starting that process and it was clear that it was going to take several hours, maybe all night, so I stopped it to reconsider.

I could use svnadmin dump with or without the --deltas option, then compress and scp the dump file.

Is there some better approach?

like image 891
Ethan Avatar asked Sep 18 '11 01:09

Ethan


People also ask

What is SVN dump?

By default, the Subversion dump stream contains a single revision (the first revision in the requested revision range) in which every file and directory in the repository in that revision is presented as though that whole tree was added at once, followed by other revisions (the remainder of the revisions in the ...

What is SVN migration?

SVN is a popular tool for code hosting. It is used to manage different versions of files like source code, documentation and more. It keeps history and project data. Subversion is an open-source tool and comes under the Apache License.

How do I access SVN repository from another computer?

You can either store your repositories locally and access them using the file:// protocol or you can place them on a server and access them with the http:// or svn:// protocols. The two server protocols can also be encrypted. You use https:// or svn+ssh:// , or you can use svn:// with SASL.


1 Answers

Yep rsync.

Specificly:

rsync -hxDPavilyzH source/ user@remote:/target/ --stats
like image 112
sehe Avatar answered Oct 11 '22 12:10

sehe