Rsync Error: rsync: link_stat failed: No such file or directory (2)

I wish to copy all the files & folder under /web/Transfer_Files/data/ on mymac1 (Linux) to remote server mybank.intra.com (Solaris 10) /tmp/ location

I am using Ansible tool synchronize module which triggers the unix rsync command as below:

rsync --delay-updates -F --compress --archive --rsh=ssh -S none /web/Transfer_Files/data/ wlsuser@mybank.intra.com:/tmp

Output Error:

Note: This directory does exist on my system & also has good permissions: /web/Transfer_Files/data/

I do not know why /web/Transfer_Files/data/ gets replaced with /web/Transfer_Files/none in the output.

I tried both bash and ksh shells.

 uname -a
Linux mymac1 3.10.0-693.11.6.el7.x86_64 #1 SMP Thu Dec 28 14:23:39 EST 2017 x86_64 x86_64 x86_64 GNU/Linux

Can you please let me know how can I fix the error ?

-S none /web/Transfer_Files/data/

-S doesn't take an argument (at least on Ubuntu Linux), so I'd guess it's interpreting none as a source (relative to cwd, which is presumably /web/Transfer_files )

1 Like

You got it right. removing the -S none helped resolve the problem.

Now, the bigger issue is; how do i make Ansible construct the rsync command without the -S none as the argument.