From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Backuping org with git, cron and Dropbox Date: Sun, 01 May 2011 07:31:33 -0400 Message-ID: <87d3k21wtm.fsf@norang.ca> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:39245) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGUtn-0003Tk-H8 for emacs-orgmode@gnu.org; Sun, 01 May 2011 07:33:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QGUtm-0002ec-EC for emacs-orgmode@gnu.org; Sun, 01 May 2011 07:33:15 -0400 Received: from mho-03-ewr.mailhop.org ([204.13.248.66]:52698 helo=mho-01-ewr.mailhop.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGUtm-0002eH-CQ for emacs-orgmode@gnu.org; Sun, 01 May 2011 07:33:14 -0400 In-Reply-To: (Marcelo de Moraes Serpa's message of "Sun, 1 May 2011 00:36:06 -0500") 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: Marcelo de Moraes Serpa Cc: Org Mode 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 usually program in bash, so > bear with me :)): > > 1 DAYW=$(date | cut -d" " -f 1) > 2 NOW=$(date +"%d-%m-%Y-%r") > 3 > 4 cd ~/org > 5 git add . > 6 git commit -a -m "$DAYW-$NOW" > 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