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 svnserve. Note: 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...
- SVN is using the svn+ssh protocal
- Username 8058 at the beginning of the address
- The
data2/home/8058to access my repository on the file server. I got this by running thepwdcommand. Using...s008.rsync.net/svn/myrepowill 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
Recent Posts
-
Freshbooks - My new best friend
2 weeks, 5 days ago -
Using jQuery Inside Your Firefox Extension
2 weeks, 6 days ago -
Using a Site Layout with the Sinatra Web Framework
on 1/5/08 -
Why You Should Use Persistent Connections with MySQL
on 11/4/08 -
CakePHP Best Practices: Rethinking the hasAndBelongsToMany Association
on 27/3/08 -
CakePHP Best Practices: Fat Models and Skinny Controllers
on 23/1/08 -
10 Steps to Becoming a Professional Web Developer
on 12/1/08 -
The Difference Between Good Code and a Good App
on 10/1/08 -
Using Your rsync.net Account as a SVN Repository
on 4/1/08 -
Welcome to GLUEinteractive
on 13/11/07
