News for hackers. Stuff that matters.
Re:Dropbox will kill your insane MacBook Air 2013 battery by nicoschuele on Wednesday July 03, 2013 @04:38AM (#5983190)
I store a lot more than just a git repo in Dropbox. I also use it to share files, etc. But yes, I'm starting to look at alternatives. Maybe I'll develop a small utility to push/pull/share files from my home NAS upon request rather than having a continuous process running in the background.
Re:Dropbox will kill your insane MacBook Air 2013 battery by tluyben2 on Wednesday July 03, 2013 @04:40AM (#5983203)
You can also, what I did, switch dropbox off and switch it on only when you are connected to power for a sync. It's not ideal, but it works. I don't see how dropbox could do better though. If you do it manually to your NAS, you basically do the same as switching dropbox on/off or dropbox in a cronjob. Anything monitoring your file system and synching up with many small files will incur load like this.
Re:Dropbox will kill your insane MacBook Air 2013 battery by tommorris on Wednesday July 03, 2013 @08:43AM (#5984122)
I use ControlPlane - http://www.controlplaneapp.com/ - which monitors your "context" (like location etc.) and lets you trigger events on context change.

Just added some rules so that Dropbox quits when I'm in my "mobile" context, but reopens when I am in my "home" or "office" contexts. Will see whether it works on my commute later.

Re:Dropbox will kill your insane MacBook Air 2013 battery by tluyben2 on Wednesday July 03, 2013 @01:38PM (#5986198)
Nice! Thanks for that tip.
Re:Dropbox will kill your insane MacBook Air 2013 battery by tommorris on Wednesday July 03, 2013 @03:36PM (#5987024)
And I'll note that after my commute home, I do seem to have a bit more battery life than usual. So that's a win.
Re:Dropbox will kill your insane MacBook Air 2013 battery by icebraining on Wednesday July 03, 2013 @05:25AM (#5983355)
It already exists, it's called git annex. It uses git to keep track of where files are (but doesn't check them in), so you can just do:

  $ git annex add myfile
  $ git annex copy --to=NAS myfile
  $ git annex get myotherfile
  $ git annex drop --from=NAS myotherfile
If the NAS has rsync support, you can add it with a single command:

  $ git annex initremote NAS type=rsync \
    rsyncurl=rsync://example.com/myrsync encryption=<gpg-email>
http://git-annex.branchable.com/
Re:Dropbox will kill your insane MacBook Air 2013 battery by nicoschuele on Wednesday July 03, 2013 @05:34AM (#5983380)
Thanks! I'm taking a look at this now.
Re:Dropbox will kill your insane MacBook Air 2013 battery by dalore on Wednesday July 03, 2013 @04:45AM (#5983225)
git repo outside of dropbox to store code and changes, but use dropbox to share project files like docs etc. Works well.