0

Hello guys, I need to create a daily backup for files and save them on another server
I use

rsync -av --progress --inplace --rsh='ssh -p22' /var/www/html/product root@37.101.11.144:/var/www/html/backup/

but this ask me for password , I want to create a cron job to copy files automatically at midnight.
how can I baypass the password ?

3
Contributors
3
Replies
28
Views
4 Years
Discussion Span
Last Post by OsaMasw
0

Just a direction here. instead of password, there might be some setting to use public key and private key by which the authorization works. try to setup that. Caution: these keys will have an expiry date I guess. if it is the case, then periodically you need to change these keys for the process to work.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.