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:
PASSWORD_FILE=rsync_password
and the password in that file only takes up 1 line.
However when I run (ignore $DESTINATION
)
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.
Thanks
$DESTINATION
. Is it using the rsync protocol, or rsync over rsh/ssh?