I already used --recursive

Wayne Davison wayned at samba.org
Sat Apr 23 22:47:46 GMT 2005


On Sat, Apr 23, 2005 at 09:58:02AM +0800, Dan Jacobson wrote:
> $ rsync -avz debian.linux.org.tw:var/lib/apt/diet.lists var/lib/apt/diet.lists
> receiving file list ... link_stat var/lib/apt/diet.lists : No such file or directory done
> client: nothing to do: perhaps you need to specify some filenames or the --recursive option?

The worst thing about that rsync response is that it returned a zero
(success) exit status when it should have returned code 23 (some files
could not be transferred).  The second worst thing about that is that it
is inconsistent with rsync's push/local-copy behavior (in which rsync
exits with the normal end-of-run messages and returns a proper response
code).

So, I just checked in a change that makes the pull behavior work like
the push behavior, and now that message is gone.  I may put in a better
warning about an empty file-list that works for both push and pull, but
I'm contemplating how useful I think that would be.  Comments welcomed.

..wayne..


More information about the rsync mailing list