Task at hand:
I have a repository on one of the linux server. As a part of upgradation process, we decided to move the SVN server to a newer better linux infrastructure. Task at hand is to replicate the svn repositories on new server.
Solution:
- Create dump for existing repository
svnadmin dump /path/to/repo > /path/to/dump/folder/myrepo.dump
This command creates a .dump file and shows the revisions being dumped as it progresses
- Transfer the dump file to new server. This can be accomplished through SSH / FTP connection or a simple scp command as:
- Log into new server and switch to the directory where you want to place your replicated svn repository. Then, create an empty svn repository
svnadmin create myrepo
- Load empty reposity with dump file
svnadmin load myrepo < /path/to/dump/folder/myrepo.dump
- Define group ownership and permission
chown -R :all myrepo chmod -R 770 myrepo
scp /path/to/dump/folder/myrepo.dump user@new_server:/path/to/dump/folder/myrepo.dump
Related posts

[...] linux how to: replicate svn repository [...]