Announcing:

LessMoney Conference will be June 7th in Tampa! Register today and make us smile super big!

Moving svn from one machine to another

written by Steven on March 12, 2007

There is a blog post with instructions on how to move a subversion repository from one machine to another. Unfortuately, that post seems to be 404. I used google cache to view the page, but I thought I would give the instructions here for those in need.

On the old machine:

> svnadmin dump /svn/repo 
> repo.dump
> tar zcf repo.dump.tgz repo.dump
> scp repo.dump user_name@new.machine.com:~/repo.dump

On the new machine:

> tar zxvf repo.dump.tgz 
> svnadmin create /svn/repo
> svnadmin load repo < repo.dump

That's it! You might run into permissions problems if you use the absolute pathing from the example. Feel free to change the paths as necessary.

Learn how LessEverything built their consultancy to over $1,000,000 annual revenue at LessMoney Conference, June 7th in Tampa Florida. Each attendee will get early access to our upcoming ebook as well.

1 Comment

AnonyMouse
AnonyMouse said on September 03, 2008

the command to load the repo should be svnadmin load /svn/repo < repo.dump

Leave a Comment

About Steven
Steven Bristol has written code for the past 20 years. He like green vegetables and kittens, oh and butterflies too. He loves to throw ninja stars at his enemies.

You Should...

Follow Steven on Twitter
Friend Steven on Facebook
Subscribe
LessEverything Copyright 2011 LessEverything.com
We don't like footers, they're kinda boring