Walrus Foolhill
2011-Jan-29 10:48 UTC
How to use rsync when filenames contain double quotes?
Hello, 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: rync -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. Walrus ps: I posted this question on SuperUser (here<http://superuser.com/questions/239154/how-to-use-rsync-when-filenames-contain-double-quotes>) but didn't get useful advice. That's why I send this on the rsync mailing list. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.samba.org/pipermail/rsync/attachments/20110129/1b258dc6/attachment.html>
Scott Wiersdorf
2011-Jan-29 19:20 UTC
How to use rsync when filenames contain double quotes?
On Sat, Jan 29, 2011 at 11:48:27AM +0100, Walrus Foolhill wrote:> 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: > > rync -Cazh /home/my_dir/ /backup/my_dir/"rsync"> And I get the following message: > > rsync: mkstemp "/backup/my_dir/.to"to.d93PZr" failed: Invalid argument (22)For what it's worth, using your command and filename (to"to) both work fine for me on OS X (both rsync v2.6.9 and v3.0.7), FreeBSD 4.7 (rsync v2.6.9), and Linux 2.6.18 (rsync v3.0.7) and going between them. Can you give more information on your system, rsync version, etc.? Scott -- Scott Wiersdorf scott at ipartner.net