- To: slug@xxxxxxxxxxx
- Subject: [SLUG] rsync'ing in a script
- From: David <david@xxxxxxxxxxxxx>
- Date: Tue Oct 8 23:02:02 2002
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.