1

I would like to backup my rails app usig a private git repo. I've decided to use Dropbox but I've already deployed to heroku, setup DNS for a custom domain name without backing up and would hate for something to go wrong by transferring my project.

Does anyone have experience with this or knows if something will go wrong? Should I reconfigure any files before transferring to a private dropbox folder?

Dru
  • 9,632
  • 13
  • 49
  • 68
  • Possible dup of http://stackoverflow.com/questions/1960799/using-gitdropbox-together-effectively – titaniumdecoy Oct 17 '11 at 22:38
  • I've had git give me errors, probably caused by race conditions, on a git project in Dropbox. If you want to use Dropbox for backup, it's probably better to just copy the project into it instead of pulling / pushing from Dropbox. That said, none of the errors I've had were fatal, just commands aborting because a file couldn't be opened. – millimoose Oct 17 '11 at 22:39
  • titaniumdecoy Thanks but I was specifically worried about how heroku would react and that's not mentioned in that post. Inerdia I may copy like you suggested, although I just tested on a sample app connected to heroku and nothing crazy happened, from what I can tell. – Dru Oct 17 '11 at 22:53

3 Answers3

3

Heroku's addons (i.e. custom domain) configurations are located on their server, not on your computer. Typically configs appear in ENV variables. Type heroku config to see what you have.

So yes, you are free to copy your code anywhere you like, and be sure to copy your dotfiles as well.

Personally, I use github for my code backups.

rocketscientist
  • 2,428
  • 3
  • 19
  • 18
  • Thanks! I was specifically worried about heroku. Tried it on a test app and everything transferred smoothly. – Dru Oct 17 '11 at 22:49
1

bitbucket now has private git repos. Unfuddle had them for a while too. These are all free, BTW.

Adam Dymitruk
  • 124,556
  • 26
  • 146
  • 141
0

In short - don't reconfigure or setup anything - have fun of some coding instead :) If you just want your repo to stay safely in the "cloud" then:

  1. Bundle (for git or mercurial)
  2. Gmail the bundle to yourself as a reply to the same "pull" message". Or, in case you have a fellow coder, then gmail to him/her. Double-backup.
  3. Done and forgotten. There is plenty of room in you gmail inbox and sent-items for the source-code of several projects.

IMHO it is:

  • fast
  • platform-neutral
  • shareable via smart-phone within 5 minutes maximum
  • pull/push/work anywhere
  • secure
  • easy
  • a natural habit
andruso
  • 1,955
  • 1
  • 18
  • 26