You are not logged in.
Pages: 1
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
/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
Thank @karol.
Tried your suggestion, but the error persists.
Offline
Can you post how did you modify your crontab?
Offline
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
> 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
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
Thank you !
Offline
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
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
Pages: 1