or the rsync option –protect-args (-s), no slashes needed

rsync manual describes how the remote shell interprets all filenames and options. with –protect-args the filenames and options are interpreted by the remote rsync only.

no description in the manual how filenames and options are interpreted at the local shell by shell or rsync source sender. at least we know to write quoted filenames to rsync like most shell programs that read filenames with spaces.

an rsync transfer, minimally escaped

rsync -s [email protected]:/path/’path spaced’/ “/to/destination spaced/”

for filenames, notice that you could either quote the spaced part of a path only, or the path full. either escape form may single quote or double quote