I made a shell backup script that uses Rsync and I am trying to get rid of the password prompt because it will use a CRON to run. I have set my variable in my shell script at:
and the password in that file only takes up 1 line.
However when I run (ignore
rsync -aRvz tmp $DESTINATION --password-file=$PASSWORD_FILE
It still gives me the prompt. How can I accomplish this? I cannot allow a prompt and I do not want to have to use keys.
$DESTINATION. Is it using the rsync protocol, or rsync over rsh/ssh?