Archive

Archive for February, 2009

linux how to: replicate svn repository

February 28, 2009 4 comments

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

Brainmunch: urge for freedom

February 14, 2009 2 comments

Is it my ego or my sanity that urges me to break free !!

Categories: Brain Munch

Review: DEV D

February 11, 2009 3 comments

Category: Musical
Review: Cult piece of art

Whats your take?

Categories: Brain Munch
Follow

Get every new post delivered to your Inbox.