emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Myles English <mylesenglish@gmail.com>
To: Rasmus <rasmus@gmx.us>
Cc: emacs-orgmode@gnu.org
Subject: Re: advice needed: how do you guys sync org files between	devices?
Date: Tue, 02 Jul 2013 10:43:45 +0100	[thread overview]
Message-ID: <87y59pfga6.fsf@gmail.com> (raw)
In-Reply-To: <8761wtjppi.fsf@pank.eu>


Hi,

Rasmus writes:

> Another option is Git Annex.  In my experience, it takes some effort
> to get used to it, but perhaps less so if you're used to git.  One can
> configure it to use regular git for e.g. text files.  It's build with
> Haskell (and success of building it is more or less random), but the
> author now provides binary packages for 32 and 64 bits.

And git-annex is supported by the org attachment features, the author of
git-annex, Joey Hess, has also written a tool called 'mr'.

I sync between computers on a LAN and keep my org files in a git repo,
and the attachment directory, named 'data' by default, is another git
repo.  To sync both of these repos at the same time, they are collected
together in a .mrconfig file like this:


[DEFAULT]
lib =
        syncOrg() {
                git commit -a -m update || true
                git pull pi master
                git push pi master
        }
[org]
update = syncOrg

[org/data]
update = syncOrg

other git repos can be added of course.  These pull and push to/from a
bare repos on a RaspberryPi that is always on.

There are some things that I wish worked better and I feel could be
improved:

1) when you add a repo (e.g. adding an attachment to an attachment will
result in a nested repo because an attachment isn't self-aware) the
corresponding bare repo must be added to the .mrconfig and the RaspPI.

2) git log shows lots of commit messages in the master branch that say

"Merge branch 'master' of pi:org/etc"

or

"update"

and so "Made some really important changes" becomes buried in the log.
I have a feeling that this could be fixed by using a separate branch for
syncing, but there would still be a merge commit message.

Myles

  reply	other threads:[~2013-07-02  9:41 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-01 12:06 advice needed: how do you guys sync org files between devices? Xebar Saram
2013-07-01 16:10 ` Brian van den Broek
2013-07-01 16:25   ` Tomas Grigera
2013-07-01 18:02     ` Karl Voit
2013-07-02  7:40       ` Alan Schmitt
2013-07-02  8:03         ` Karl Voit
2013-07-02  9:06           ` Rasmus
2013-07-02  9:43             ` Myles English [this message]
2013-07-02 13:36           ` Alan Schmitt
2013-07-02 14:07             ` Rasmus
2013-07-02 14:27               ` Alan Schmitt
2013-07-02 16:03                 ` Suvayu Ali
2013-07-04  8:26                   ` Alan Schmitt
2013-07-02 15:50             ` Brett Viren
2013-07-03 21:48         ` Julien Cubizolles
2013-07-02 10:17     ` Suvayu Ali
2013-07-02 12:30       ` Xebar Saram
2013-07-02 16:59         ` Juan G.
2013-07-02 15:59       ` David Engster
2013-07-02 16:08         ` Suvayu Ali
2013-07-02 16:11           ` David Engster
2013-07-02 16:51             ` Suvayu Ali
2013-07-01 16:31 ` Ramon Diaz-Uriarte
2013-07-02 19:49 ` Simon Thum
2013-07-03  8:17 ` Samuel Loury
2013-07-03 17:33 ` G. Martin Butz
2013-07-03 20:05   ` Nick Dokos
2013-07-04  8:28 ` Ian Barton
2013-07-04  8:57   ` Nicolas Richard
2013-07-08 15:53   ` Christopher Allan Webber
2013-07-08 21:41     ` Xebar Saram
2013-07-09  8:26       ` Rasmus

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=87y59pfga6.fsf@gmail.com \
    --to=mylesenglish@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=rasmus@gmx.us \
    /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).