Rsync from a third host?

Warren Oates warren.oates at gmail.com
Tue Nov 4 19:33:26 GMT 2008


On Tue, Nov 4, 2008 at 11:23 AM, kbrault <kbrault at live.com> wrote:

> Now if I can just figure out how to stop it from prompting me for a password
> every time.
> --

You'll have to use an expect script for that, something like this one:

  #!/usr/bin/expect -f

  ## Note: set crontab's $PATH to search /usr/local/bin (or wherever
you've installed rsync 3) first
  spawn rsync -az --delete
wife at 192.168.0.107:~/Documents/Eudora?Folder/ /Volumes/Backups/Eudora\
Folder
  expect "*?assword:*"
  send  "********\r"
  set timeout -1
  expect eof

This is instructive in another way  -- both the sender and receiver
are Intel OS X 10.5.5; note how rsync handles spaces in filenames
compared to to the filesystem itself.


-- 
W. Oates


More information about the rsync mailing list