From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bingo UV Subject: Re: Asynchronous mobileorg push/pull Date: Sun, 29 Nov 2015 22:42:56 +0530 Message-ID: <20151129224256.371b7e7b@dhcppc15> References: <87a8q9lxzj.fsf@felesatra.moe> <87vb8sss3w.fsf@ntnu.no> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45346) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a35XB-00063n-1d for emacs-orgmode@gnu.org; Sun, 29 Nov 2015 12:13:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a35X5-0006bR-Vv for emacs-orgmode@gnu.org; Sun, 29 Nov 2015 12:13:08 -0500 Received: from mail-pa0-x242.google.com ([2607:f8b0:400e:c03::242]:35476) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a35X5-0006bN-QH for emacs-orgmode@gnu.org; Sun, 29 Nov 2015 12:13:03 -0500 Received: by padhk6 with SMTP id hk6so21997587pad.2 for ; Sun, 29 Nov 2015 09:13:03 -0800 (PST) Received: from dhcppc15 ([122.179.49.35]) by smtp.gmail.com with ESMTPSA id t26sm45925864pfa.52.2015.11.29.09.13.01 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 29 Nov 2015 09:13:02 -0800 (PST) In-Reply-To: <87vb8sss3w.fsf@ntnu.no> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On Mon, 23 Nov 2015 15:33:23 +0100 Sven Bretfeld wrote: > You can just use a cronjob like: > > */10 * * * * emacs --batch --load ~/.emacs --eval > "(org-mobile-pull)" --eval "(org-mobile-push)" > > This executes the whole process in the background with another > instance of emacs running in batch-mode. > > Sven > The problem with this is that the other instance of emacs writes org files and the main instance of emacs then warns quite rightly about files on the disk changing outside of that emacs. Isn't there the danger of losing data with this mechanism? Or am I missing some simple defense against such data loss? org-mobile-push could have been a read-only operation on the org files, but it creates the PROPERTIES drawer if missing. org-mobile-pull obviously writes into org files. So my fear is that in the worst case both of these can cause data loss. Does that make sense? thanks