Random musings and out of date things

Rsync.net svn howto

23rd March 2008

I thought I’d knock together a quick howto for getting svn to work with rsync.net’s remote backup service.


First of all, rsync your repository up to your rsync.net space:

rsync -avz /share/svn-repos username@server.rsync.net:

The trailing “:” is required!

Next create an ssh keypair (if you don’t have one already):

ssh-keygen -t rsa

If you want to make it easier to access, leave the password field blank (just press enter).

Once you have created that, add the following to ~/.ssh/config (makes it easier in future):

Host server.rsync.net
Hostname server.rsync.net
User username

Now edit your public ssh key file (~/.ssh/id_rsa.pub by default), adding the following to the start of the line:

command="svnserve -t -r svn-repos"

Important! - Make sure the file is still only one line!

Next copy the file to your rsync.net space:

scp ~/.ssh/id_rsa.pub server.rsync.net:~/.ssh/authorized_keys

At this point, we are ready to check out our files. The final command is:

svn co svn+ssh://server.rsync.net/project

With any luck that should then check out “project” to your box from your rsync.net space, ready for use.