LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   rsyncbackup wont run over cron (https://www.linuxquestions.org/questions/linux-software-2/rsyncbackup-wont-run-over-cron-777852/)

ulver 12-24-2009 04:32 AM

rsyncbackup wont run over cron
 
I`m using rsyncbackup, http://code.google.com/p/rsync-backup/, as my central backup solution. I`ve configured everything and it works fine when I run it manually, but over some servers it wont run over cron.
I think its a PATH issue so Im asking is there any way to debug this and find out which part of the script wont run?!

jlinkels 12-24-2009 10:42 AM

Start with looking in /var/log/syslog to see if cron generated an error message.

Did you include the path to perl in the cron job? Did you enter the cron job in /etc/crontab and specified that it should run as root?

Are you calling the script just by the script name (/path/to/script) or are you calling perl explicitely like:
/usr/bin/perl /path/to/your/script
The latter is the correct way.

There is an option to increase verbosity in this script. Use it, and redirect your output to a file in your home directory or the /tmp directory.
/usr/bin/perl /path/to/your/script > /tmp/backup.log

jlinkels


All times are GMT -5. The time now is 08:29 AM.