emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Marcelo de Moraes Serpa <celoserpa@gmail.com>
To: Bernt Hansen <bernt@norang.ca>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: Backuping org with git, cron and Dropbox
Date: Sun, 1 May 2011 14:09:07 -0500	[thread overview]
Message-ID: <BANLkTimjwkODVjbxC9osPm5Du8A+X7oCfA@mail.gmail.com> (raw)
In-Reply-To: <87d3k21wtm.fsf@norang.ca>

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 <bernt@norang.ca> wrote:
> Marcelo de Moraes Serpa <celoserpa@gmail.com> 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
>

  reply	other threads:[~2011-05-01 19:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-01  5:29 Backuping org with git, cron and Dropbox Marcelo de Moraes Serpa
2011-05-01  5:36 ` Marcelo de Moraes Serpa
2011-05-01 11:31   ` Bernt Hansen
2011-05-01 19:09     ` Marcelo de Moraes Serpa [this message]
2011-05-02 17:16   ` theo
2011-05-02 21:12     ` Marcelo de Moraes Serpa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BANLkTimjwkODVjbxC9osPm5Du8A+X7oCfA@mail.gmail.com \
    --to=celoserpa@gmail.com \
    --cc=bernt@norang.ca \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).