Escaping Filenames with Whitespaces for rsync
Montag, 15 Oktober 2012
If you need to sync from a source path containing whitespaces you’ll need to escape those for the remote shell as well as for the local shell, so your command may look like this:
rsync -ae ssh ‘firstname.lastname@example.org:/path/with\ some/gaps/’ ‘/another/one with/ a gap/’
Don’t escape the whitespaces on the local side twice or you’ll end up with weired filenames!