Move svn repository

From Andreida
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Create the backup

svnadmin dump /path/repository > backup.dump

Now copy the backup to the destination and there create a new repository

svnadmin create /path/repository

Restore the data

svnadmin load /path/repository < backup.dump

Set the owner

chown -R user:group /path/repository   (www-data ?)

Set the rights

chmod -R 750 /path/repository

If you need to point a working copy to the new url: (don't forget the point at the end) New svn versions have "svn relocate".

svn switch --relocate file:///var/svn/repos file:///tmp/newlocation .