Move svn repository: Difference between revisions

From Andreida
(Created page with "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 Re...")
 
(No difference)

Latest revision as of 11:41, 16 February 2016

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 .