Move svn repository

From Andreida
Revision as of 11:41, 16 February 2016 by Andreas (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 .