From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karl Voit Subject: Ignore pattern when syncing Org-mode files between hosts Date: Wed, 28 Dec 2016 16:42:30 +0100 Message-ID: <2016-12-28T15-24-40@devnull.Karl-Voit.at> Reply-To: Karl Voit Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37583) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cMGNI-0007gN-ML for emacs-orgmode@gnu.org; Wed, 28 Dec 2016 10:42:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cMGNG-0003rA-0g for emacs-orgmode@gnu.org; Wed, 28 Dec 2016 10:42:44 -0500 Received: from [195.159.176.226] (port=47598 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cMGNF-0003q6-PW for emacs-orgmode@gnu.org; Wed, 28 Dec 2016 10:42:41 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cMGN6-0001Ow-C1 for emacs-orgmode@gnu.org; Wed, 28 Dec 2016 16:42:32 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org 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