Hi,
I have a Fedora backup server at home which backs up my production server w/ rsync using a public key.
When I rsync from the command line using the same command as in my_script below, it works just fine (no password required). If I run my_script from the command line, it also works fine.
But when I schedule the same command using cron, the backup server asks for a password which of course it never gets, so the job fails. There is nothing in /var/log/cron that mentions this.
As you can see, the cron job runs as user 'username'. What am I missing here?
contents of crontab for user 'username':
Code:
30 04 * * * username /home/username/my_script
contents of /home/username/my_script:
Thanks,
kmitz