Linux Mandriva 2008.1
luckyBackup 0.2 (0.2-1 rpm 386)
i use anacron to to be sure routine job are executed, because my pc is not always on.
luckybackup scheduled job is not executed with anacron in the contrary of others jobs. how i know that ? the last job has date 2009/01/08 00:00:01. today is 2009/01/10
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
What it actually does is to update the user's crontab, according to the schedule dialog entries, every time you press that cronIt button.
you can confirm that by typing the command
"crontab -l"
at a console.
One typical crontab entry would be (for the current version):
0 0 * * * DISPLAY=:0.0 /usr/bin/luckybackup -c --no-questions --skip-critical /home/luckyb/.luckyBackup/profiles/default.profile >> /home/luckyb/.luckyBackup/logs/cronLogfile.txt 2>&1
Which means, execute luckybackup (console mode) for the default.profile at 00:00 every day & log the output to the cronLogfile.txt file.
If you would like to use anacron instead of cron then you will have to manualy edit the anacron configuration file to execute a similar command whenever you want to.
The fix of that id ready but will not be introduced until the release of the next version.
...but again, if you cannot wait, just tell me, so that I prepare a package for you and mail it personally
:-)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i am sure such a script is executed by anacron
thus
if you want to execute a luckybackup job
then
you must create a script with the luckybackup statements, no ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Please, try not to confuse cron and anacron.
They are 2 different things.
The fact that sometimes anacron is started by cron might be confusing
luckybackup uses cron.
It also does not use the /etc/crontab file but the specific user's crontab (every user has his/her own crontab file).
You can see the specific user's crontab by typing the command
cronatb -l
if you want to use anacrontab then do not use the luckybackup schedule dialog. Also you don't have to make script files (you could but there is no need)
Instead, modify the /etc/anacrontab file by adding a line that will execute luckybackup in command-line mode.
see the anacrontab man page for more details of how to do that
and maybe google a bit to have a look at some examples of how to add entries at the /etc/ancrontab file
Below is an example that runs luckybackup daily, with a delay of 20 minutes after anacron begins and executes the default.profile:
1 20 backItUp DISPLAY=:0.0 /usr/bin/luckybackup -c --no-questions --skip-critical /home/promeneur/.luckyBackup/profiles/default.profile
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Linux Mandriva 2008.1
luckyBackup 0.2 (0.2-1 rpm 386)
i use anacron to to be sure routine job are executed, because my pc is not always on.
luckybackup scheduled job is not executed with anacron in the contrary of others jobs. how i know that ? the last job has date 2009/01/08 00:00:01. today is 2009/01/10
Hello again
:-)
luckybackup uses cron to schedule jobs.
What it actually does is to update the user's crontab, according to the schedule dialog entries, every time you press that cronIt button.
you can confirm that by typing the command
"crontab -l"
at a console.
One typical crontab entry would be (for the current version):
0 0 * * * DISPLAY=:0.0 /usr/bin/luckybackup -c --no-questions --skip-critical /home/luckyb/.luckyBackup/profiles/default.profile >> /home/luckyb/.luckyBackup/logs/cronLogfile.txt 2>&1
Which means, execute luckybackup (console mode) for the default.profile at 00:00 every day & log the output to the cronLogfile.txt file.
If you would like to use anacron instead of cron then you will have to manualy edit the anacron configuration file to execute a similar command whenever you want to.
Have in mind that you probably have to add "DISPLAY=:0.0 " because of the bug that was discussed here:
https://sourceforge.net/forum/forum.php?thread_id=2808889&forum_id=873564
This means that you need an X-server to be running when the scheduled job is executed !!
The fix of that id ready but will not be introduced until the release of the next version.
...but again, if you cannot wait, just tell me, so that I prepare a package for you and mail it personally
:-)
in mandriva 2008.1
it seems that anacron uses partly cron job settings
okay this is for root job scheduling
crontab :
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
run-parts
01 * * * * root nice -n 19 run-parts --report /etc/cron.hourly
02 4 * * * root nice -n 19 run-parts --report /etc/cron.daily
22 4 * * 0 root nice -n 19 run-parts --report /etc/cron.weekly
42 4 1 * * root nice -n 19 run-parts --report /etc/cron.monthly
anacrontab
/etc/anacrontab: configuration file for anacron
See anacron(8) and anacrontab(5) for details.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
These entries are useful for a Mandrake system.
1 5 cron.daily run-parts /etc/cron.daily
7 10 cron.weekly run-parts /etc/cron.weekly
30 15 cron.monthly run-parts /etc/cron.monthly
it seems that anacrontab and crontab are not used to put any user job scheduling statement
i you see contents of /etc/cron.daily :
there are bash scripts
each bash scripts is a scheduling job to execute each day
for example
there is a "mlocate.cron" script :
!/bin/sh
nodevs=$(< /proc/filesystems awk '$1 == "nodev" { print $2 }')
nice --adjustment=+19 ionice -c0 /usr/bin/updatedb -f "$nodevs"
i am sure such a script is executed by anacron
thus
if you want to execute a luckybackup job
then
you must create a script with the luckybackup statements, no ?
Please, try not to confuse cron and anacron.
They are 2 different things.
The fact that sometimes anacron is started by cron might be confusing
luckybackup uses cron.
It also does not use the /etc/crontab file but the specific user's crontab (every user has his/her own crontab file).
You can see the specific user's crontab by typing the command
cronatb -l
if you want to use anacrontab then do not use the luckybackup schedule dialog. Also you don't have to make script files (you could but there is no need)
Instead, modify the /etc/anacrontab file by adding a line that will execute luckybackup in command-line mode.
see the anacrontab man page for more details of how to do that
and maybe google a bit to have a look at some examples of how to add entries at the /etc/ancrontab file
Below is an example that runs luckybackup daily, with a delay of 20 minutes after anacron begins and executes the default.profile:
1 20 backItUp DISPLAY=:0.0 /usr/bin/luckybackup -c --no-questions --skip-critical /home/promeneur/.luckyBackup/profiles/default.profile