Cron backup failing?

I'm a bit frustrated, because I can't seem to get my backup script working via cron.

The script, at /usr/local/bin/backup.sh (chmod a+x), is working fine if I run it from the command line.. just peachy. It FTPs everything to my server. Happy.

But the cron script e-mails me
"/bin/sh: line 1: RHNS-CA-CERT: command not found"

The cron script says
2 2 * * * * /usr/local/bin/backup.sh

The script, is a simple-
#!/bin/sh
cd /backup
ncftpput -u USERNAME -p PASSWORD -R FTPSITE / *


The username and password are, of course, actually in the file..

The hard part is if I just run the darn file, it works fine.. But cron is complaining..

I'd love any suggestions.

Colin

 

 

 

 

Top