Re: Rsync from a third host?
On Tue, Nov 4, 2008 at 2:33 PM, Warren Oates <firstname.lastname@example.org> wrote:
> 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
> email@example.com:~/Documents/Eudora?Folder/ /Volumes/Backups/Eudora\
> 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.[/color]
Well, that got totally mangled, didn't it.
## Note: set crontab's $PATH to search /usr/local/bin (or wherever
you've installed rsync 3) first
## all on one line, space after "?Folder/"
## I hate gmail sometimes
spawn rsync -az --delete wife@host:~/Documents/Eudora?Folder/
## end of that line
set timeout -1
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: [url]https://lists.samba.org/mailman/listinfo/rsync[/url]
Before posting, read: [url]http://www.catb.org/~esr/faqs/smart-questions.html[/url]