From: Karl Voit <devnull@Karl-Voit.at>
To: emacs-orgmode@gnu.org
Subject: Ignore pattern when syncing Org-mode files between hosts
Date: Wed, 28 Dec 2016 16:42:30 +0100 [thread overview]
Message-ID: <2016-12-28T15-24-40@devnull.Karl-Voit.at> (raw)
Hi!
I wonder how others are handling synchronization ignore patterns
between different hosts.
In particular, I do have "issues" with temporary files of Emacs +
Org-mode like «.#myfile.org» or «#myfile.org#».
The first one is a symlink which does not bother me as long as I
keep quitting my Emacs instances when leaving a host and as long as
Windows sync does not result in an error because of not properly
handling symlinks. So lets forget about them until someone points me
to a potential issue.
The latter one is an autosave file which takes as much space as the
original file except for the changes in between. This is causing
many MBs of unnecessary synchronization data.
So far, I was using unison file synchronizer which I invoked
manually before shutting down the host I was working with. Therefore
there were no temp files left since I had to save and quit Emacs. A
clean status of my Org-mode files was transferred, no unwanted temp
files synced.
Currently, I am evaluating Syncthing[0] which looks very good so
far. It is a game-changer to be because similar to Dropbox[1], it
synchronizes in background on any change within 60s (by default).
Thus, resulting in symlinks and tempfiles transferred as well.
On the one hand side, I clearly don't want those temp files
synchronized to other hosts because my Org-mode files tend to get
very large[2]. A short test showed that before and after invoking
save-some-buffers() autosave files of about 10MB of data got
deleted. This data was transferred beforehand resulting in lots of
sync overhead I want to avoid.
On the other hand side, I do want those temp files synced because
they contain unsaved changes I'd lose when starting to work in a
different host before saving/quitting Emacs.
I had mixed results when I tried real-auto-save[3] a year ago. This
would be a method to make sure that there are no unsaved changes
older than xx seconds. Somehow, this was not working to my
satisfaction so I had to disable it again.
So how do you handle ignore patterns with sync tools like Dropbox or
Syncthing?
[0] https://syncthing.net/
[1] I'll never trust my (unencrypted) Org-mode files be placed in
the public cloud like Dropbox or similar.
[2] Several of my Org-mode files holds a couple of MBs of data.
[3] from https://www.emacswiki.org/emacs/AutoSave - seems to be down
--
mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode:
> get Memacs from https://github.com/novoid/Memacs <
https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github
next reply other threads:[~2016-12-28 15:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-28 15:42 Karl Voit [this message]
2016-12-28 16:16 ` Ignore pattern when syncing Org-mode files between hosts Skip Collins
2016-12-28 17:12 ` Karl Voit
2016-12-28 17:49 ` Thierry Banel
2016-12-30 17:28 ` Karl Voit
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2016-12-28T15-24-40@devnull.Karl-Voit.at \
--to=devnull@karl-voit.at \
--cc=emacs-orgmode@gnu.org \
--cc=news1142@Karl-Voit.at \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.