what is the best place to store code online?
i want to have a backup of my files somewhere in case something happens and an emailadress is just annoying for this kind of thing.<p>i could use google doc to save the soource code but i just want to be able to store it as a .py-file or .scm-file and download directly later.<p>mozy seem to cost even for the smallest storage?
xdrive has 5GB free though.<p>any tips? should obv support any fileformat.
For all of my projects, I have an assembla account (<a href="http://www.assembla.com" rel="nofollow">http://www.assembla.com</a>) with SVN access. I don't know the privacy/crypto details, so if you're storing private/sensitive data I can't help you with any details there - I'm doing open source stuff and couldn't care less who sees my code. Your situation might be different!
S3. I have a script that takes one argument, a directory name.<p>It encrypts the directory name and adds a timestamp, to make a filename that reveals nothing about the contents of the file except for the time it was created. It stores the original directory name along with the encrypted directory name in a local log file, so I can tell what's what later.<p>Then it zips the directory and its contents into a file, names it with the encrypted filename, and does a GPG encryption of the file.<p>Then it uploads it to Amazon S3 and cleans up after itself.<p>All of this is completely automated once I type in the command. I do it for my project directory, which contains all my projects for the calendar year, periodically. After the year closes out, I start a new year and the old files (from previous years) stay safe and unchanged on S3.<p>Over the course of a year, if a few backups for the same year pile up, I usually delete the old ones. I haven't automated that part.<p>This scheme is OK for backing up a few important directories, if they aren't large, like for source code, just what you asked about -- a few hundred megabytes will cost just pennies a month on Amazon.<p>It's not a SVN or GIT solution, but it gives you total privacy, rather than relying on a third party to do the encryption for you.
I'd recommend a cheap VPS, which you can then use for any number of things, including running svn, git, whatever.<p>You get root access, so you can do whatever you want with it. They're great for prototyping web apps.<p>I like Slicehost (as low as $20/month) <a href="http://www.slicehost.com/" rel="nofollow">http://www.slicehost.com/</a>
I run a VPS with SVN and Trac. Does everything I need.<p>My backup job runs from home using a scheduled script (cron, tar, scp).<p>You could just as easily send your tar files to Amazon S3
Until a few months ago, we hosted our svn repository on berlios.de . It went down every few weeks, so I don't recommend them. We started using them when sourceforge only had cvs. Nowadays sf.net supports svn, so you might look into that.<p>Somewhat recently, we switched to git and started hosting ourselves, but you might look into code.google.com .<p>If you don't actually want your code to be public, just get some free online storage. Do you really need more than 5GB?
For small projects I use <a href="http://www.8svn.com" rel="nofollow">http://www.8svn.com</a> which is pay as you go service, similar to nearylyfreespeech.net
My start-up has had an absolutely terrific experience so far with cvsdude.com. If you want a subversion/trac/bugzilla package, the pricing is reasonable and their customer service has been great. Also, if you want to host an open source project, they have free options.<p>I highly recommend it.
When I started using Mozy, they offered 2 GiB free and that still seems to be the case.<p><a href="http://mozy.com/free" rel="nofollow">http://mozy.com/free</a>
I can't help but think that there are better ways to backup your code. Once you give it to an online service, you give up total control over how that data is handled.<p>Your code is everything. You should take care of it properly.<p>On the other hand, if you are working on OSS, then of course your need for privacy is trumped.
I use <a href="http://duplicity.nongnu.org/" rel="nofollow">http://duplicity.nongnu.org/</a> to backup to Amazon S3 (it has support for various other backends). It encrypts with GnuPG. S3 charges a few cents per GB of transfer and a few cents per GB of storage per month.
My suggestion is to get Dreamhost (500GB, 5TB transfer) and buy this for a 2-year time. Enter the promo code "5050" to get $50 bucks off, making this a $150 for 2 years hosting plan that runs svn and you'll never run out of diskspace.
Another vote for github.com. If you're interested in a more generic storage and backup service, try rsync.net. You'll have to write your own rsync scripts to do backups, but rsync.net's uptime and support have been fantastic for me.
I got a VPS with vpslink.com<p>I paid for 2 years upfront and got a 50% discount - total price was ~$12/month for a Xen instance (debian) with 256MB Ram<p>I have SVN/trac on it ... although, I've been thinking of migrating to git.<p>I also use it to host a lot of other stuff too.
We use Beanstalk for hosted Subversion. They've been pretty good so far. And have super integration to Campfire and FogBugz, etc.<p><a href="http://www.beanstalkapp.com/" rel="nofollow">http://www.beanstalkapp.com/</a>