News for hackers. Stuff that matters.
Re:I swapped my MacBook for an iPad+Linode by jerf on Wednesday November 02, 2011 @10:26AM (#3186817)
I would observe that with DVCS, if your hard drive crashes you can still lose several days of unpushed code, too. I recommend and use cron jobs to push and/or rysnc things around on a more frequent basis for my really important stuff.
Re:I swapped my MacBook for an iPad+Linode by scottschulthess on Wednesday November 02, 2011 @11:38AM (#3187270)
This is why I keep my working copies in Dropbox
Re:I swapped my MacBook for an iPad+Linode by GoldenMonkey on Wednesday November 02, 2011 @12:50PM (#3187686)
second that... my working folders are dropbox... and commit to cloud git repository as needed.
Re:I swapped my MacBook for an iPad+Linode by kellishaver on Wednesday November 02, 2011 @11:25PM (#3190087)
Same here. I had some sort of electrical problem with my last computer and lost my hard drive due to it. Unfortunately, my back-up drive was also plugged in at the time and it got fried, as well (really bad luck/timing there).

One of the first thing I did when I got the new computer was to put a symlink to my projects directory in my Dropbox folder, so that all of my projects now get backed up to Dropbox automatically.

Re:I swapped my MacBook for an iPad+Linode by tl on Wednesday November 02, 2011 @12:25PM (#3187530)
We keep our main repository in under dev/$PROJECT and backup repositories under user/$USERNAME/$PROJECT. Then we set a post-commit hook to push to the backup server on commit. Setting up the backup and creating the hook is done by a shell script you run after cloning.
Re:I swapped my MacBook for an iPad+Linode by ori_b on Wednesday November 02, 2011 @11:04AM (#3187067)
Raid and rsync are your friends. Use them.
Re:I swapped my MacBook for an iPad+Linode by swah on Wednesday November 02, 2011 @12:42PM (#3187623)
I'm always doing

  git push origin develop
for this reason, but some environments probably don't allow you to do this easily? I work alone. (EDIT: be nice to people)
Re:I swapped my MacBook for an iPad+Linode by ConstantineXVI on Wednesday November 02, 2011 @08:24PM (#3189560)
We typically work in personal feature branches before merging into develop; if you use a similar workflow there shouldn't be much issue at all from pushing constantly.
Re:I swapped my MacBook for an iPad+Linode by swah on Wednesday November 02, 2011 @10:01PM (#3189848)
Can you protect from other folks pulling it? Sometimes people just don't want to reveal their code while is ugly...
Re:I swapped my MacBook for an iPad+Linode by ConstantineXVI on Wednesday November 02, 2011 @10:14PM (#3189878)
Gitolite[1] will let you mark branches as private on the remote either by specific branch name or a regex (ex: any branch that starts with "swah-" is private to you) if you want privacy before revealing your code.

[1] http://sitaramc.github.com/gitolite/

Re:I swapped my MacBook for an iPad+Linode by run4yourlives on Wednesday November 02, 2011 @10:58AM (#3187028)
Dropbox fixes this.
Re:I swapped my MacBook for an iPad+Linode by gujk on Wednesday November 02, 2011 @10:42AM (#3186928)
You could buy a second hard drive and put it behind your other drive and occasionally copy important files from your front drive up to your back drive.
Re:I swapped my MacBook for an iPad+Linode by vidarh on Wednesday November 02, 2011 @11:08AM (#3187092)
Works great until your computer/home/office catches fire.

Personally I have a mirrored drive set that I use as my primary storage, and a third disk that I rsync to nightly and use for backups of other stuff, because I don't trust that I won't have filesystem errors or controller problems that might render both disks in the mirror unusable. Then on top of that I use Crashplan to ensure I have an offsite copy.

For most of my code I also push to github or private external repositories regularly and/or pull to my laptop.

Maybe a bit paranoid, but I've had to recover from enough scary hardware and software failures over the years to not want to take risks.

Re:I swapped my MacBook for an iPad+Linode by BonoboBoner on Wednesday November 02, 2011 @10:53AM (#3186994)
Or use TimeMachine if you are on a Mac.
Re:I swapped my MacBook for an iPad+Linode by wizard_2 on Wednesday November 02, 2011 @01:46PM (#3187995)
No, if TimeMachine screws up a file it stays screwed up for ever after every backup, there's no integrity checking. It also completly barfs on large files that change little by little. The best example of that is the entourage mail store, but any single file db will do. I've seen clients bit bad by these problems. Don't get me started on the time capsule...
Re:I swapped my MacBook for an iPad+Linode by sepposade on Wednesday November 02, 2011 @06:18PM (#3189202)
Option-click on the Time Machine menu to verify backups. Sleep well.
Re:I swapped my MacBook for an iPad+Linode by chernevik on Wednesday November 02, 2011 @02:03PM (#3188097)
What should we use instead?
Re:I swapped my MacBook for an iPad+Linode by dman on Wednesday November 02, 2011 @03:50PM (#3188641)
Linus's solution is to write software that people run and use daily.
Re:I swapped my MacBook for an iPad+Linode by wtallis on Wednesday November 02, 2011 @05:23PM (#3188998)
Point your Time Machine backups at a NAS that's using ZFS with block-level deduplication.
Re:I swapped my MacBook for an iPad+Linode by xutopia on Wednesday November 02, 2011 @11:11AM (#3187105)
What's wrong with a remote branch you push to and then merge back into master afterwards?
Re:I swapped my MacBook for an iPad+Linode by jerf on Wednesday November 02, 2011 @11:25AM (#3187187)
Was my second sentence really that incomprehensible?