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

1 comment:

Károly Domonyi said...

Hi,

Your site is one of my favorites seen around blog explosion. Keep up the good work.
I enjoy reading your blog. It is great to find someone who can find the fun things in life!
I wish you all the best in all years. Please take a look at my websites and increase your page rank, traffic as well. I look forward to developing a friendship and networking with you. Let me know if there is something I can do to assist you with your business free.

With Regards,
Karoly Domonyi
http://www.ariestrade.com

Whats new in Ajuby 0.5