One for the nerds....
Aug. 10th, 2011 11:58 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
So I now have 2 or 3 machines I use for tinkering with the little projects I have, and I'd like to keep the code synched. There are many tools for this, of course, and I'm not wanting to start a religious war about which tool I should use, but rather seeking advice on how to use them best :)
Assume, for the sake of argument, that I have access to git and/or subversion. Assume, for the sake of argument, that I have a ~/Code directory, which has, of course, a Python directory and a Perl directory, which then contain project directories and library directories.
Assuming for the moment that I don't care so much about synching "broken" code - in that I want to be able to half-finish something on the desktop, commit it to the repo, and check it out on the laptop to keep tinkering - as much as I care about the latest version, is my best strategy to commit ~/Code en masse and then just update en masse?
Or should I commit each project individually to the repo, so I can branch later if need be?
Assume, for the sake of argument, that I have access to git and/or subversion. Assume, for the sake of argument, that I have a ~/Code directory, which has, of course, a Python directory and a Perl directory, which then contain project directories and library directories.
Assuming for the moment that I don't care so much about synching "broken" code - in that I want to be able to half-finish something on the desktop, commit it to the repo, and check it out on the laptop to keep tinkering - as much as I care about the latest version, is my best strategy to commit ~/Code en masse and then just update en masse?
Or should I commit each project individually to the repo, so I can branch later if need be?
(no subject)
Date: 2011-08-11 07:52 am (UTC)Still not as good as Dropbox because you have to remember to push/pull/run-script-to-sync, but not everything fits in Dropbox. :-)
(no subject)
Date: 2011-08-12 04:53 am (UTC)It does if you give them (enough) money. ;)
I mainly use Dropbox for an offsite backup of my music collection, so I've paid for a 100GB account. It works pretty well in that role and I don't have to think about it all once it was set up, it just automatically syncs properly.
(no subject)
Date: 2011-08-12 05:00 am (UTC)I'm more thinking that if you're compiling a project that involves regularly creating and destroying hundreds of MB of libraries, or working with editing multi-GB media files, Dropbox is not going to help you much... if only because sending all that crap up to .us even once (assuming the other machines are local so they do LAN sync) is going to take forever. De-duplication may or may not help, but I wouldn't like to bet on it helping. :-)
Personally I'm very happy with http://crashplan.com/ as my emergency cloud backup provider and I really hope I never have to do a catastrophic restore (of all machines), but it's there just in case. I did do a full crashplan restore of my linux VM when that died horribly, but that was a mere 13GB. :-)
Dropbox I'm keeping just for "a small amount of stuff I like to sync", so the free GB is fine for me so far. I'd be happy to pony up for a bit more if I needed it though.
(no subject)
Date: 2011-08-12 05:03 am (UTC)I like that Dropbox will also sync across the LAN if it can, so it takes care of both the remote backup and the rsync-like cases. At this point anything I care about winds up in TM, on Dropbox, and synced to a second machine via Dropbox-over-LAN. I feel *reasonably* safe.
(no subject)
Date: 2011-08-12 06:27 am (UTC)