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 00:36:06 -0500 Message-ID: References: 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]:33422) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGPKF-0002dp-Tm for emacs-orgmode@gnu.org; Sun, 01 May 2011 01:36:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QGPKB-0005S1-Ia for emacs-orgmode@gnu.org; Sun, 01 May 2011 01:36:11 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:32812) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGPKB-0005Rv-BZ for emacs-orgmode@gnu.org; Sun, 01 May 2011 01:36:07 -0400 Received: by bwz17 with SMTP id 17so4965937bwz.0 for ; Sat, 30 Apr 2011 22:36:06 -0700 (PDT) In-Reply-To: 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: Org Mode 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 usually program in bash, so bear with me :)): 1 DAYW=3D$(date | cut -d" " -f 1) 2 NOW=3D$(date +"%d-%m-%Y-%r") 3 4 cd ~/org 5 git add . 6 git commit -a -m "$DAYW-$NOW" 7 git push Cheers, Marcelo. On Sun, May 1, 2011 at 12:29 AM, Marcelo de Moraes Serpa wrote: > Hi list, > > I just would like to share the approach I use (just finished setting > it up) to backup org. > > I keep all my org files on ~/org/*. This is also a git repo. Every > night at 12:00AM, a cron job will run a sh script that will: > > 1) Commit with the current date ( Sat-30-04-2011-11:43:28 PM for example)= ; > 2) push to origin. > > It's simpler than other solution such as backupninja (that I don't if > would work on dropbox) and keeps also a revision history (per day). > > Here's the remote configuration for git. > > =A08 [remote "origin"] > =A09 =A0 url =3D /Users/myname/Dropbox/org > =A010 =A0 fetch =3D refs/heads/master:refs/heads/origin > > Another thing I should point out is that I'm using (the excellent) > org-crypt to encrypt sensitive information such as bank accounts data > and passwords. > > Also, I'm using TimeMachine to backup to an external hard-drive. Time > machine is not the most efficient of backup solutions but "just > works". I'll see if I can setup backupninja to backup to Dropbox as > well, if so, I might switch to that. > > Hope might useful for someone out there :) > > Cheers, > > Marcelo. >