Re: rsync hangs after counting some file list
On Mon, 2008-09-29 at 10:37 +0530, Ravi Thati wrote:[color=blue]
> I have written script to download a directory from remote machine
> which contains the always the updated data. I want to download that
> directory onto my local machine periodically with --link-dest option
> to my old download directory.
> I have automated the script using " expect scripting"[/color]
You should consider using ssh public-key authentication (see
ssh-keygen(1)) rather than automating the password via expect.
> When I run the script I get the following output and it hangs
> ~/ravit/ravi.ex "--link-dest=/Build56/source/"
> "user@remotemachine:/Build58/source/" "./source/"
> exp_spawn rsync -avz --stats --progress --partial
> user@remotemachine:/Build58/source/ ./source/
> user@remotemachine's password:
> receiving file list ...
> 20900 files...[/color]
Does the same thing happen if you run rsync interactively without
"expect"? Try raising the verbosity to -vvv to get more information on
where rsync is stalling.
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]