From: Erik Hetzner <egh@e6h.org>
To: Tobias Frischholz <tobias@friolz.com>
Cc: Org Mode Mailing List <emacs-orgmode@gnu.org>
Subject: Re: Favorite way of syncing?
Date: Fri, 11 Sep 2015 22:18:05 -0700 [thread overview]
Message-ID: <55f3b58e.0a01450a.289e6.ffffa323@mx.google.com> (raw)
In-Reply-To: <C3CE04C4-2E48-43D2-BA90-E41F7013CF28@friolz.com>
Hi Tobias,
On Fri, 11 Sep 2015 06:59:31 -0700,
Tobias Frischholz <tobias@friolz.com> wrote:
>
> Hey there!
>
> I was wondering what is your favorite way of syncing your org files and everything.
> I’ve checked out unison, but I want more of an automated system that synchronizes my two clients via an SSH server.
> […]
I finally settled on the following (although syncthing looks
promising):
1. git for my 2 org dirs (for home & work)
2. git-annex to manage attachments (I have a local patch to
automatically get annex files from a repo when opening, but haven’t
submitted it yet)
3. git-auto-commit-mode with the following setup:
;; auto-commit to git if the file is in one of my notes repos
(defun egh:maybe-git-auto-commit-mode ()
(let* ((bfn (buffer-file-name))
(root (and bfn (vc-git-root (buffer-file-name))))
(full-root (and root (expand-file-name root))))
(if (or (string-equal full-root "/home/egh/c/notes/h/")
(string-equal full-root "/home/egh/c/notes/w/"))
(git-auto-commit-mode +1))))
(add-hook 'org-mode-hook #'egh:maybe-git-auto-commit-mode)
(setq-default gac-automatically-push-p t)
4. A simple script called morning to sync it up:
Hope that helps!
#!/bin/sh
cd ~/c/notes/h
git pull origin master
git annex copy --fast --to=cloud
git annex sync
best, Erik
--
Sent from my free software system <http://fsf.org/>.
next prev parent reply other threads:[~2015-09-12 5:18 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-11 13:59 Favorite way of syncing? Tobias Frischholz
2015-09-11 14:27 ` Alan Schmitt
2015-09-11 14:47 ` Jorge A. Alfaro-Murillo
2015-09-11 15:18 ` Eric Abrahamsen
2015-09-11 15:25 ` Tory S. Anderson
2015-09-11 15:48 ` Joon Ro
[not found] ` <34AA198A-5C08-4FDD-8D12-5241E44A0B9D@friolz.com>
2015-09-12 1:15 ` Eric Abrahamsen
2015-09-11 15:13 ` Paul Rudin
2015-09-11 15:18 ` Eric S Fraga
2015-09-11 16:42 ` Ramon Diaz-Uriarte
2015-09-11 20:47 ` Eric S Fraga
2015-09-13 7:07 ` Paul Rudin
2015-09-13 19:18 ` Ramon Diaz-Uriarte
2015-09-11 22:05 ` Myles English
2015-09-11 22:51 ` Kyle Meyer
2015-09-12 1:24 ` Eric Abrahamsen
2015-09-14 9:34 ` Myles English
2015-09-15 2:07 ` Eric Abrahamsen
2015-09-12 5:18 ` Erik Hetzner [this message]
2015-09-12 13:31 ` 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=55f3b58e.0a01450a.289e6.ffffa323@mx.google.com \
--to=egh@e6h.org \
--cc=emacs-orgmode@gnu.org \
--cc=tobias@friolz.com \
/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).