1832390 Members
2915 Online
110041 Solutions
New Discussion

Crontab rolling back.

 
rmueller58
Valued Contributor

Crontab rolling back.

root cron rollbacked to some unknown file this weekend. not sure what the hell is going on
I vi'd /var/tmp/root.cron last week

changed one parameter
read the file in with
crontab /var/tmp/root.cron


We reboot daily and run a backup daily upon system coming up.

Correct -------
30 23 * * * /pei/peitools/bin/reboot.sh
55 23 * * * /pei/peitools/bin/backups.sh

When we came in this morning, backups/exports had not run, and crontab -l output looked like this:

30 23 * * * /pei/peitools/bin/reboot.sh
55 23 * * 1-5 /pei/peitools/bin/backups.sh

Needless to say, I am a wee bit baffled and need to some info from the gurus. Any thoughts from you guys you all can pass along?
3 REPLIES 3
Ivan Ferreira
Honored Contributor

Re: Crontab rolling back.

The /var/log/cron file has records of what happened with cron entries. Maybe someone/somehow the cron was replaced again.

Check the entries in the /var/log/cron file.

In the Linux version I use, i see a REPLACE entry when someone runs crontab filename.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
rmueller58
Valued Contributor

Re: Crontab rolling back.

Ivan,

the log gets overwrote on reboot by the looks of it.
rmueller58
Valued Contributor

Re: Crontab rolling back.

I am closing this thread and moving it to HP/UX system admin..