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@domain.tld:/DESTINATION/`date +%A` --password-file=/quellen/RSYNC_PASSWD does not work! I always get a prompt to enter users root password! -- Jochen Kaechelin
On 30 Jul 2002, Jochen K?chelin <jk@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@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. -- Martin
On 1 Aug 2002, Dave Dykstra <dwd@bell-labs.com> wrote:> Another change that I think really ought to go in is something like > the one at > > http://lists.samba.org/pipermail/rsync/2002-February/006371.html > > to get the correct error codes out of rsync. But first I think we > really need to hear from Tridge why he put that code there in the first > place. Martin, did you ever ask him? If not, can you please get him > to look at it?I will follow that up with him. -- Martin