$RYSNC_PASSWORD not being read/responded-to correctly (Snow Leopard)

Posted by warren on Super User See other posts from Super User or by warren
Published on 2010-04-13T13:24:55Z Indexed on 2010/04/13 13:33 UTC
Read the original article Hit count: 367

Filed under:
|
|
|

Ignoring the security issues, I have the following script that synchronizes my music library from my MacBook Pro (running Snow Leopard) to the file store (CentOS 4) on my network:

rsync -rav --progress --partial -e "ssh" ~/Music/iTunes/* user@scramasax:~/music/iTunes-scissor:~

When I try to use either a password provided on the command-line (), in a password file (--password-file), or in the environment variable RSYNC_PASSWORD, the login still goes interactive, requiring me to type my password again.

I will be moving to pre-shared keys on my network, but in situations where that is not possible, such as rsync'ing files to a webserver, being able to successfully embed the password in the script would be very helpful.

© Super User or respective owner

Related posts about rsync

Related posts about bash