How to automate rsync without asking for password prompt

Posted by Rijosh K on Stack Overflow See other posts from Stack Overflow or by Rijosh K
Published on 2010-04-21T09:45:13Z Indexed on 2010/04/21 9:53 UTC
Read the original article Hit count: 149

Filed under:

i would like to automate the rsync task as a cron job.. since it needs the passphrase i am not able to do the cronjob. i need to specify the passphrase along with the rsync command or i will store the passphrase in a file and i will read from it. my command will look like this..

rsync -aPe "ssh -i ' . $server->{'ssh_key'} . '" ' . $server_lock_dir;

so where do i put the password .. pls help

© Stack Overflow or respective owner

Related posts about linux