Tugger the SLUGger!SLUG Mailing List Archives

[SLUG] rsync'ing in a script


I want a script to automate file back-ups, and I've tried the following
with no success:

rsync -a -e ssh --password-file=file /etc me@elsewhere:/backup 2>
/dev/null

This works ok, except that it asks for a password on the command line.

<file> contains the password on a single line, and nothing else. I've
tried it with and without \n and neither work without manually entering
the password.

Any suggestions?

David.