Hey everybody, I've got a script that runs rsync to sync up files on my development computer and a backup computer I've got on the same network... It's a one-liner (I haven't really learned how to harness the power of the scripts yet
), that looks like this:
rsync -e ssh -avz /SERVER kassemi@192.168.0.2: /BACKUP
I've set up the keys so that this will run when I'm logged in on my development computer as kassemi. crond is running as a different user though, so this command doesn't work (prompt for password).. I don't want the crond user to have access to the backup machine... I was doing some reading, and I ran across this:
crontab filename -e kassemi
If I do this to the script, will I end up messing up cron access to the other scripts I have? Will it work? How can cron run the file as kassemi without prompting me for a password every time?
Thanks,
James.