Rsync permission denied using cron server to server over internet
I am able to get rsync working, from directory to directory on local computer,
and its even working from server to server if i input the command manually(it asks me for my password)
But using a cron over the internet from server to server, i am getting a permission denied from the cron, in the mail
I noticed when i make a cron and it runs at it's scheduled time, it doesn't ask me for a password and even if it did, i wouldn't be around when the cron runs.
is there a way i can put -pmypassword somewhere in my cron?
This is the command i am using in the cron:
rsync -av --delete -e ssh /mywebsitefiles/ root@89.123.123.123:/backup_of_mywebsitefiles/
where exactly do i put the password inside that cron commanad
thanks!
Last edited by chripy811; 05-14-2017 at 11:07 AM.
|