How to use rsync when filenames contain double quotes?

Posted by wfoolhill on Super User See other posts from Super User or by wfoolhill
Published on 2011-01-29T01:21:03Z Indexed on 2011/01/30 23:28 UTC
Read the original article Hit count: 185

Filed under:
|

I am trying to synchronize the content of the directory my_dir/ from /home to /backup. This directory contains a file which name has a double quote in it, such as to"to. Here is my rsync command:

rsync -Cazh /home/my_dir/ /backup/my_dir/

And I get the following message:

rsync: mkstemp "/backup/my_dir/.to"to.d93PZr" failed: Invalid argument (22)

For info, rsync works well when the synchronized filenames contain single quote, parenthesis and space. Thus, why is it bugging with a double quote? Thanks for any help.

© Super User or respective owner

Related posts about linux

Related posts about rsync