Rsync Daemon Remote Pull

Wayne Davison wayne at
Sat Jun 27 15:27:22 UTC 2020

On Sat, Jun 27, 2020 at 7:17 AM Chandrasekar Natarajan wrote:

> Kindly help me to resolve this.

One thing you can do is to change the initial command from "rsync" to
"/usr/bin/rsync" (if that is where the real command is installed in your
setup) in order to try to avoid any script & shell alias effects (but it
won't avoid any popt alises). It's only your system where the problem
exists so you're the one that needs to figure out where the
local non-option arg is coming from in your setup (since it's something
wrong outside of rsync and outside of the never-exact command you say
you're running).

If all else fails, move the real rsync aside and put a shell script in its
place that tells you the args it's getting (be sure to install this in
place of /usr/bin/rsync or whatever path the real rsync is installed at):

for arg in "${@}"; do
  case "$arg" in
    -*) echo "Option: $arg" ;;
    *:*) echo "Remote arg: $arg" ;;
    *) echo "Local arg: $arg" ;;

Just ignore that saying the port number is a local arg (it's an arg to the
--port option) or change your run to use "--port=4783" (with an equal sign)
since the script doesn't know which options take args.  That should show
you exactly what rsync is getting. If that shows no issues then you should
be looking for a popt alias that is injecting an extra local arg into the
command line (as described earlier).

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the rsync mailing list