Hey guys I have ghettoVCBg2 running fine on my VMA 4.1 machine, so now I decided it was time to automate the backups.
I followed all the instructions I could find wrt Crontab.
Basically I do the following commands:
sudo vi /etc/crontab
so the crontab looks like this:
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
44 15 * * * root /home/vi-admin/ghettoVCBg2.pl --vmlist /home/vi-admin/vmlist
I check the cron jobs with
sudo tail -f /var/log/cron
I see the command running, but nothing happens, no logs are written, and no backups are taken.
If I copy exactly the command /home/vi-admin/ghettoVCBg2.pl --vmlist /home/vi-admin/vmlist and run it normally it works fine.
This has been eating weeks out of my time trying to figure out why.
Any ideas?