Schedule Cron JOB esxi

# cd /var/spool/cron/crontabs
Editare il classico file di root
Killare il processo di crond
/var/spool/cron/crontabs # kill $(cat /var/run/crond.pid)
Riavviare il processo di crond
/var/spool/cron/crontabs # busybox crond
Al prossimo reboot il server avra perso il processo in crontab quindi ….
To schedule a local cron-job and have it be persistent (not lost at reboot) add the following lines to /etc/rc.local /bin/echo “0 9 * * * xxxxxxxxxxx” >> /var/spool/cron/crontabs/root
/bin/busybox crond -b

then run auto-backup.sh it will backup the changes to the rc.local file

Schedule Cron JOB esxi

Leave a Reply

Your email address will not be published. Required fields are marked *