From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: org back up Date: Wed, 17 Oct 2012 15:36:42 -0400 Message-ID: <5775.1350502602@alphaville.americas.hpqcorp.net> References: <878vb5q6u8.fsf@mithlond.arda> <87zk3kq5kx.fsf@mithlond.arda> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:41156) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOZQ8-0003hb-OH for emacs-orgmode@gnu.org; Wed, 17 Oct 2012 15:36:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TOZQ7-00024R-IO for emacs-orgmode@gnu.org; Wed, 17 Oct 2012 15:36:48 -0400 Received: from g1t0029.austin.hp.com ([15.216.28.36]:45593) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOZQ7-00024G-DW for emacs-orgmode@gnu.org; Wed, 17 Oct 2012 15:36:47 -0400 In-Reply-To: Message from Teemu Likonen of "Wed, 17 Oct 2012 22:08:46 +0300." <87zk3kq5kx.fsf@mithlond.arda> 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: Teemu Likonen Cc: emacs-orgmode@gnu.org, Sanjib Sikder Teemu Likonen wrote: > Sanjib Sikder [2012-10-18 00:32:00 +0530] wrote: > > > Even after 26th minute, there is no sign of the code in work. Is it that > > $HOME is not allowed and I need to give full path ? > > Ah, I thought that you'd run it from your personal crontab. So yes, > write paths from root's point of view. > [I replied to Sanjib privately on the grounds that it's OT for the list, but let me add a couple of notes to this thread before we shut it off as completely OT: cron issues are hardly germane to org.] o Adding personal items to root-owned crontabs is a *bad idea* indeed. o One should try the script by hand before trying to incorporate it into cron: much easier to debug. o cron operates in a restricted environment: just run `env' as a cron job to find out what it knows (hint: not much). o Quite apart from cron issues, the backup method in the script is fundamentally flawed in my opinion: iiuc, it flattens the hierarchy, so if you have org files with the same name in different directories, only *one* will be saved into the backup directory - hardly a reliable backup. Nick