rsync hangs after counting some file list
matt at mattmccutchen.net
Fri Oct 3 00:30:27 GMT 2008
On Mon, 2008-09-29 at 10:37 +0530, Ravi Thati wrote:
> 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"
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 at remotemachine:/Build58/source/" "./source/"
> exp_spawn rsync -avz --stats --progress --partial
> user at remotemachine:/Build58/source/ ./source/
> user at remotemachine's password:
> receiving file list ...
> 20900 files...
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.
More information about the rsync