automate password using cwRsync

724 views
Skip to first unread message

Randy McCullough

unread,
Jan 20, 2010, 8:25:14 PM1/20/10
to DataStorageUnit
I have a script (batch file) that uses cwRsync to transfer files. I
would like to automate the script so that it doesn't prompt for a
password. There are 2 possibilities and it seems that neither is
possible. Am I missing anything, or am I out of luck.

man rsync

RSYNC_PASSWORD
Setting RSYNC_PASSWORD to the required password allows you to
run authenticated rsync connections to an rsync daemon without
user intervention. Note that this does not supply a password to
a shell transport such as ssh.

--password-file
This option allows you to provide a password in a
file for
accessing an rsync daemon. The file must not be world
readable.
It should contain just the password as a single line.

This option does not supply a password to a remote
shell trans-
port such as ssh; to learn how to do that, consult
the remote
shell's documentation. When accessing an rsync daemon
using a
remote shell as the transport, this option only
comes into
effect after the remote shell finishes its
authentication (i.e.
if you have also specified a password in the
daemon's config
file).

John Wooton

unread,
Jan 20, 2010, 9:03:51 PM1/20/10
to datasto...@googlegroups.com
Have you tried using key pairs?

http://www.itefix.no/i2/node/11316

Randy McCullough

unread,
Jan 20, 2010, 9:20:27 PM1/20/10
to DataStorageUnit
Not yet, but I will...thanks for the tip.

On Jan 20, 9:03 pm, John Wooton <j...@datastorageunit.com> wrote:
> Have you tried using key pairs?
>
> http://www.itefix.no/i2/node/11316
>
> On Wed, Jan 20, 2010 at 8:25 PM, Randy McCullough

> <r.n.mccullo...@gmail.com>wrote:

Reply all
Reply to author
Forward
0 new messages