--password-file switch

Martin Pool mbp at samba.org
Mon Jul 29 23:20:01 EST 2002

On 30 Jul 2002, Jochen K?chelin <jk at linux.amsjk.de> wrote:
> How can I use the --password-file switch with rsync in order not to
> be promted for the users password so I can run rsync in a cronjob?
> rsync -uavrpog -e ssh /www root at domain.tld:/DESTINATION/`date +%A`
> --password-file=/quellen/RSYNC_PASSWD
> does not work!
> I always get a prompt to enter users root password!

The --password-file option only applies to rsync daemon connections, not 
ssh.  You need to set up an ssh key to make ssh connections with no
password; see the recent thread or the ssh manual for instructions.


More information about the rsync mailing list