Home > svn > svn setup and migration

svn setup and migration

Install subversion straight from apt.

apt-get install subversion

Migrating svn repository from old server to new server:

As I have all my svn repositories under /home/development I cd to that directory and:

mkdir /tmp/svn ; for a in $(ls); do svnadmin dump $a > /tmp/svn/$a.dump ; done
tar zvcf svn_repos.tgz /tmp/svn/*.dump
scp svn_repos.tgz user@new_server:/tmp

To replicate the old repos on the new server:

cd /tmp
tar zxfv svn_repos.tgz
cd svn
for a in $(ls); do cd /home/development; svnadmin create $(echo $a |sed -e "s/\.dump//"); svnadmin load $(echo $a |sed -e "s/\.dump//") < /tmp/svn/$a ; cd -

To load svnserve on startup:

vi /etc/rc.local
    svnserve --listen-host=myhost.com -d -r /home/development/
http://blog.melimato.com/wp-content/plugins/sociofluid/images/digg_24.png http://blog.melimato.com/wp-content/plugins/sociofluid/images/reddit_24.png http://blog.melimato.com/wp-content/plugins/sociofluid/images/stumbleupon_24.png http://blog.melimato.com/wp-content/plugins/sociofluid/images/delicious_24.png http://blog.melimato.com/wp-content/plugins/sociofluid/images/technorati_24.png http://blog.melimato.com/wp-content/plugins/sociofluid/images/google_24.png http://blog.melimato.com/wp-content/plugins/sociofluid/images/myspace_24.png http://blog.melimato.com/wp-content/plugins/sociofluid/images/facebook_24.png http://blog.melimato.com/wp-content/plugins/sociofluid/images/yahoobuzz_24.png http://blog.melimato.com/wp-content/plugins/sociofluid/images/twitter_24.png http://blog.melimato.com/wp-content/plugins/sociofluid/images/meneame_24.png
Categories: svn Tags:
  1. May 29th, 2009 at 01:23 | #1

    hey this is a very interesting article!

  1. No trackbacks yet.

Comment moderation is enabled. Your comment may take some time to appear.

Additional comments powered by BackType