Project

General

Profile

Moving SVN repositories

Several folks have wanted to move an SVN repository from elsewhere to cdcvs; this is fairly straightforward
if you are on a system where you can ssh to both repositories, you can:

    src_host=some.host.name
    src_user=oldusername
    project=my-project
    ssh $src_host -l $src_user "svnadmin dump $oldrepository" | 
        ssh cdcvs.fnal.gov -l p-$project@fnal.gov "svnadmin load /cvs/projects/$project" 

Or you can use svnadmin dump to make a dumpfile, copy the file around, and use
svnadmin load to restore it; as described in the SVN Book:
http://svnbook.red-bean.com/en/1.7/svn.reposadmin.maint.html#svn.reposadmin.maint.migrate.svnadmin