Rss Feed
Tweeter button
Facebook button
Technorati button
Reddit button
Linkedin button
Delicious button
Digg button
Flickr button
Stumbleupon button
31 articles and counting
      

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

One Response to “linux how to: replicate svn repository”

1
linux: create svn repository | A glass case of thoughts - 16/03/10
[...] linux how to: replicate svn repository [...]

Comment / Leave a Review

  Name (required)
  Mail (will not be published) (required)



Parse error: syntax error, unexpected '<' in /home/philogy/public_html/wordpress/wp-content/themes/prettypress/statcode.php on line 7