You are not logged in.

#1 2010-07-22 17:21:01

ben-arch
Member
Registered: 2005-12-17
Posts: 115

[SOLVED] "back in time" and crond problem

I'm looking into using "back in time" as a backup tool.
For testing, I've created a simple daily rule - just to see how it goes.

crontab entry (created by BIT) is :

@daily nice -n 19 /usr/bin/backintime --backup-job >/dev/null 2>&1

No backup is run. and I'm geting an error in crontab's log :

failed parsing crontab for user el: writing timestamp requires job nice -n 19 /usr/bin/backintime --backup-job >/dev/null 2>&1 to be named

I'm guessing that the crontab entry is somehow wrong.
Any help will be appreciated.

Ben

Last edited by ben-arch (2010-07-24 03:29:43)

Offline

#2 2010-07-22 17:44:02

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] "back in time" and crond problem

/etc/cron.daily is a catalog you put your scripts to run into.

@daily          ID=sys-daily    /usr/sbin/run-cron /etc/cron.daily

Put backintime.sh there

#!/bin/sh
#
# backiintime
#
nice -n 19 /usr/bin/backintime --backup-job >/dev/null 2>&1

Last edited by karol (2010-07-22 17:46:25)

Offline

#3 2010-07-23 05:32:05

ben-arch
Member
Registered: 2005-12-17
Posts: 115

Re: [SOLVED] "back in time" and crond problem

Thank @karol.

Tried your suggestion, but the error persists.

Offline

#4 2010-07-23 06:00:10

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] "back in time" and crond problem

Can you post how did you modify your crontab?

Offline

#5 2010-07-23 12:26:03

ben-arch
Member
Registered: 2005-12-17
Posts: 115

Re: [SOLVED] "back in time" and crond problem

I didn't ....

crontab for my user was created by BIT and is the one line I've posted in the first post.  I guess i'm missing something ....

Thanks  for your help

Last edited by ben-arch (2010-07-23 12:26:27)

Offline

#6 2010-07-23 12:45:04

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] "back in time" and crond problem

> I guess i'm missing something ....
Well yes. You should have sth like that in your crontab:

@daily          ID=sys-daily    /usr/sbin/run-cron /etc/cron.daily

And now put all of your scripts you want to run daily into  /etc/cron.daily.

Offline

#7 2010-07-23 13:29:26

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: [SOLVED] "back in time" and crond problem

Or just put an "ID=backintime" or something like that into your crontab line like karol's example has. The value of ID is the "name" it wants - in order to run something "daily" cron needs to keep a file of the last time it ran, and to do that, it needs a name for the file.

Offline

#8 2010-07-24 03:28:49

ben-arch
Member
Registered: 2005-12-17
Posts: 115

Re: [SOLVED] "back in time" and crond problem

Thank you !

Offline

#9 2010-08-12 09:46:41

rider
Member
From: Slovenia
Registered: 2009-09-28
Posts: 6

Re: [SOLVED] "back in time" and crond problem

Basicly the initial solution is OK -> http://bugs.archlinux.org/task/18292

Another solution : cron demands full path for executable programs.

so
     (a.)       @daily nice -n 19 /usr/bin/backintime --backup-job >/dev/null 2>&1

should be replaced with
     (b.)          @daily /usr/bin/nice -n 19 /usr/bin/backintime --backup-job >/dev/null 2>&1
                               ======

Line (a.) made by 'backintime' worked for me til ~27/5. I found on august that bacups stoped sad

Each time the frequency of backup is changed in 'backinintime', path is broken (b.) -> (a.).

Last edited by rider (2010-08-12 10:06:48)

Offline

Board footer

Powered by FluxBB