Page 1 of 1

Roots cronjob after upgrade 3.1

Posted: Sat Jun 16, 2012 11:38 am
by arnab.roy
Hi Guys,

I had some cornjob setup on our XI box for the root user to run scheduled backups etc. They seem to have stopped working ever since upgrade to 3.1 any reasons why ?

Cheers
Arnab

Re: Roots cronjob after upgrade 3.1

Posted: Mon Jun 18, 2012 9:22 am
by scottwilkerson
Actually this was a bug in 3.0 which was the cause of us putting out 3.1 so quickly.

You should have a backup of your old root crontab in /tmp/root.crontab.orig

You should be able to restore this with

Code: Select all

crontab -u root /tmp/root.crontab.orig
You will want to edit the crontab after this and remove these lines as they have been moved to the /etc/cron.d/nagiosxi

Code: Select all

# Backup MySQL & PostgreSQL Databases
0   7 * * * root   /root/scripts/automysqlbackup
0   8 * * * root   /root/scripts/autopostgresqlbackup