Glue Interactive

Using Your rsync.net Account as a SVN Repository

This post dropped Jan 4th, 01:42, in to Web Development

The guys over at rsync.net do a fantastic job.  For literally a few dollars a month, you have a remote file system that serves as a great backup, file host & now as a SVN repository.  rsync.net gives you some very basic instructions on how to do this...

Yes. The svnserve command is available for you to run, remotely, over SSH. This means that you can upload a repository with rsync or sftp and then access it remotely with any tool that supports the svn+ssh:// URL format.

This is pretty straight forward, but I'll save you some headaches and help you get up and running.

To get started, use svnadmin to locally make a svn repo on your machine.

svnadmin create myrepo

Now, SSH in to your rsync.net account to start svnserveNote: that you'll have to change your username and host to yours from your rsync.net account.

ssh 8058@usw-s008.rsync.net svnserve -d

The -d part starts svnserve in "daemon mode."  Checkout svnserve --help for more options.

Now you'll need to rsync your local repo to the remote folder you want to house it.  In my case, all my repos are in the "svn" folder off my home.

rsync -avz myrepo 8058@usw-s008.rsync.net:svn/

The -a tells rsync to operate in "archive mode," which basically says you want to recursivly transfer and preserve most everything.  The -v speficies verbose output and the -z specifies the transfer should use compression. 

So now your repo is located remotely on your rsync.net host.  Here's the magic command to access it.

svn co svn+ssh://8058@usw-s008.rsync.net/data2/home/8058/svn/myrepo localfolder

Please note the following...

  1. SVN is using the svn+ssh protocal
  2. Username 8058 at the beginning of the address
  3. The data2/home/8058 to access my repository on the file server.  I got this by running the pwd command.  Using ...s008.rsync.net/svn/myrepo will not work.

If you did everything correctly, you should be able to checkout just fine.  If you have any questions, feel free to shoot me an email.

Post Details

Published
Jan 4th, 01:42
Category
Web Development
Author
Jeff