Thursday, July 24, 2008

Taking dump of svn repository

This is for taking a dump of a existing svn repository and creating a svn repository on different server.

Take the dump of svn repo from svn.
If we want all the log history then no argument is needed.
$svnadmin dump /opt/svn/myrepo/ >myrepobackup

Copy this file to new server.

Create one repo on new server.
$ svnadmin create --fs-type fsfs /opt/svn/myrepo/
Load from the svn dump copy
$svnadmin load /opt/svn/myrepo < /root/Desktop/myrepobackup

This way we will get all the history log file of existing repository.

If we want dump of a particular revision the use:
$ svnadmin dump /opt/svn/myrepo -r 100 >myrepobackup100

For creating a repository read:
http://sanjaykatiyar1.blogspot.com/2007/06/add-svn-repository.html

No comments:

Whats new in Ajuby 0.5