From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sanjib Sikder Subject: Re: org back up Date: Thu, 18 Oct 2012 01:08:59 +0530 Message-ID: References: <878vb5q6u8.fsf@mithlond.arda> <87zk3kq5kx.fsf@mithlond.arda> <5775.1350502602@alphaville.americas.hpqcorp.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=14dae93411b372224904cc466e79 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:41863) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOZSv-0005JT-NY for emacs-orgmode@gnu.org; Wed, 17 Oct 2012 15:39:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TOZSu-0002mf-FG for emacs-orgmode@gnu.org; Wed, 17 Oct 2012 15:39:41 -0400 Received: from mail-ia0-f169.google.com ([209.85.210.169]:39738) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOZSu-0002mY-A0 for emacs-orgmode@gnu.org; Wed, 17 Oct 2012 15:39:40 -0400 Received: by mail-ia0-f169.google.com with SMTP id h37so7154131iak.0 for ; Wed, 17 Oct 2012 12:39:39 -0700 (PDT) In-Reply-To: <5775.1350502602@alphaville.americas.hpqcorp.net> 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: nicholas.dokos@hp.com Cc: Teemu Likonen , emacs-orgmode@gnu.org --14dae93411b372224904cc466e79 Content-Type: text/plain; charset=ISO-8859-1 Hi, Thanks a lot. ----------------------------- *Sanjib Sikder *Ph.D. Fellow Chemical Engineering IIT Bombay* * On Thu, Oct 18, 2012 at 1:06 AM, Nick Dokos wrote: > 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 > --14dae93411b372224904cc466e79 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,

Thanks a lot.

-----------------------------=
Sanjib= Sikder
Ph.D. FellowChemical Engineering
IIT Bombay






On Thu, Oct 18, 2012 at 1:06 AM, Nick Do= kos <nicholas.dokos@hp.com> wrote:
Teemu Likonen <tlikonen@iki.fi> 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,
=A0but let me add a couple of notes to this thread before we shut it off =A0as 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 cr= on:
=A0 much easier to debug.

o cron operates in a restricted environment: just run `env' as a cron j= ob to
=A0 find out what it knows (hint: not much).

o Quite apart from cron issues, the backup method in the script is
=A0 fundamentally flawed in my opinion: iiuc, it flattens the hierarchy, =A0 so if you have org files with the same name in different directories, =A0 only *one* will be saved into the backup directory - hardly a reliable<= br> =A0 backup.

Nick

--14dae93411b372224904cc466e79--