emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: syncing org-mode files on three unconnected machines?
Date: Mon, 09 Feb 2009 08:22:23 +0100	[thread overview]
Message-ID: <87d4ds13dc.fsf@tux.homenetwork> (raw)
In-Reply-To: 7bef1f890902081943n2417dde4uc923053fdf279a47@mail.gmail.com

Hi,
You can use git or mercurial (or other decentralized VC) to do that.
I use hg (mercurial).
To achieve that, you can do like that:
1) Initialize a repo in org-tree1
2) Clone org-tree1 to org-tree2 and org-tree3 (on the machine1)
2) Put these three org-tree on your usb-key
3) Put these three org-tree on the machine 2 and 3.

Thats all!

Now on any machine you can edit org-tree1, make changes, and just pull
changes from org-tree2 and 3. If you have your usb-key with you, pull
the change from the key, if not, you will do it later and synchronize
with the key on other machines.

For a better experience, use DVC with hg or git.


"Alan E. Davis" <lngndvs@gmail.com> writes:

> I am studying and using git in several ways at work and at home, and hope to
> dive further into the agenda possibilities.  I have been using org-mode at
> work, on two machines, as well as at home, on my preferred main machine.  I
> also would like to run emacs and org-mode sometimes on a laptop.  I am not
> currently able to network or internetwork between them, due to various
> firewall and wireless router issues that are beyond my level.
>
> My question is basically how to keep the files consistent among the various
> machines.  I have thought of at least two ways, but don't understand whether
> either of them will work:
>
> 1.  I am now carrying around a USB flash drive with three ~/org trees from
> three machines.  I have been trying to maintain important files by hand:
> cutting and pasting headlines and their subtrees, then sorting the entire
> target file.  Is there a canonical method for merging two files (basically
> the same file on two different machines, edited at different times, with
> some overlaps)?
>
> 2.  I am thinking git.  I'm uncertain about git at the best, so I don't know
> how to implement this.  Is this reasonable?  A git archive is kept on a
> flash drive.  It is updated from the drive of the current machine.  ~/org on
> the current machine is also updated  from the git archive on the flash
> drive.
>
> I am currently struggling to get git working on all my ~/org trees.  Also, I
> have set some files outside that tree as remember targets or with links to
> be access from git files.  Somehow, those files will have to be hardlinked
> on both or all three machines, meaning the machines will have to mirror each
> other.
>
> Somehow, any solution to this problem will need to be robust when I forget
> my flash drive.
>
> Am I dreaming?
>
> Thank you,
>
> Alan

-- 
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France

  parent reply	other threads:[~2009-02-09  7:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-09  3:43 syncing org-mode files on three unconnected machines? Alan E. Davis
2009-02-09  6:39 ` Carsten Dominik
2009-02-09  7:22 ` Thierry Volpiatto [this message]
     [not found] ` <e0e1fe620902090012j54286429v509cc2e5892225bd@mail.gmail.com>
     [not found]   ` <7bef1f890902090448w452249c7y95f956999c00fc58@mail.gmail.com>
2009-02-09 12:50     ` Alan E. Davis
2009-02-09 14:49       ` Manish
2009-02-09 15:54       ` Bernt Hansen
2009-02-09 17:25         ` Matthew Lundin

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=87d4ds13dc.fsf@tux.homenetwork \
    --to=thierry.volpiatto@gmail.com \
    --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).