From my Windows machine,
oc rsync pod_name:/remote/path/to/dir /local/path/to/dir -c container_name
seems to be working and downloading files.. but with:
WARNING: rsync command not found in path. Download cwRsync for Windows and add it to your PATH.
So, it complains that there is no rsync, but there is one and it is actually working.
My understanding is, that oc rsync looks for rsync in the directories available on PATH environment variable. And even if I don't have rsync on the PATH, oc still runs its own rsync, as it has the one built-in and it runs its own one, under the hood (correct me if I'm wrong).
Could I get rid of this annoying warning message? can I, somehow, instruct oc/windows that all is fine?
Any other tips?
You can try
-q, (or--quiet=true) to suppress non-error messages.