From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo de Moraes Serpa Subject: Re: Backuping org with git, cron and Dropbox Date: Sun, 1 May 2011 14:09:07 -0500 Message-ID: References: <87d3k21wtm.fsf@norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:50372) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGc10-00038I-FX for emacs-orgmode@gnu.org; Sun, 01 May 2011 15:09:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QGc0z-00088l-5g for emacs-orgmode@gnu.org; Sun, 01 May 2011 15:09:10 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:36232) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGc0y-00088d-VI for emacs-orgmode@gnu.org; Sun, 01 May 2011 15:09:09 -0400 Received: by bwz17 with SMTP id 17so5226083bwz.0 for ; Sun, 01 May 2011 12:09:08 -0700 (PDT) In-Reply-To: <87d3k21wtm.fsf@norang.ca> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bernt Hansen Cc: Org Mode Bernt, That's amazing! Much more complex, and I really liked the idea of tracking every directory that has important files (including configuration files). Thank you for sharing. As for deleting files, I just rm -rf when I need to, so the next commit -a will catch it. But yours is definitely a new (and I'd say better) backup paradigm. I will definitely implement your ideas later, but right now I'm satisfied (kind of) OK with OSX's Time Machine. Cheers, Marcelo. On Sun, May 1, 2011 at 6:31 AM, Bernt Hansen wrote: > Marcelo de Moraes Serpa writes: > >> Another thing: I'm considering setting the commit cron job to every >> hour. So, every hour I would have a fresh copy of org pushed to my >> dropbox volume. >> >> I forgot to share the commit.sh (I don't =A0usually program in bash, so >> bear with me :)): >> >> =A0 1 DAYW=3D$(date | cut -d" " -f 1) >> =A0 2 NOW=3D$(date +"%d-%m-%Y-%r") >> =A0 3 >> =A0 4 cd ~/org >> =A0 5 git add . >> =A0 6 git commit -a -m "$DAYW-$NOW" >> =A0 7 git push >> >> Cheers, > > Hi Marcelo, > > I use the following script hourly > http://doc.norang.ca/org-mode.html#OrgGitSyncSh > which also handles removing deleted files. > > Regards, > Bernt >