Home > SVN > linux how to: replicate svn repository

linux how to: replicate svn repository

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:

  1. 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

  2. Transfer the dump file to new server. This can be accomplished through SSH / FTP connection or a simple scp command as:
  3. scp /path/to/dump/folder/myrepo.dump user@new_server:/path/to/dump/folder/myrepo.dump
  4. 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
  5. Load empty reposity with dump file
    svnadmin load myrepo < /path/to/dump/folder/myrepo.dump
  6. Define group ownership and permission
    chown -R :all myrepo
    chmod -R 770 myrepo
    

Related posts

Categories: SVN
  1. March 25, 2011 at 6:32 am | #1

    Awesome post! It really helped me a lot! Thanks for sharing it.

  1. March 16, 2010 at 11:55 am | #1
  2. December 23, 2010 at 6:03 pm | #2
  3. February 2, 2011 at 12:24 pm | #3

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 400 other followers