I'm using rsync to backup from my Mac to a DroboShare NAS. The Drobo drive is exposed to the network using SMB.

According to Data Robotics SMB specifies quite a strict set of illegal characters that shouldn't be used in file paths.

? [ ] / \ = + < > ; : " , | *_

From: http://support.datarobotics.com/app/answers/detail/a_id/78

They reference the following Apple document: http://support.apple.com/kb/TS2039?viewlocale=en_US

This actually lists the same set of characters without the underscore, so the underscore is almost certainly spurious in the Data Robotics list. As I'm doing a backup with rsync I have a lot of paths with those characters (notably the comma is common in some of my media files).

Additionally my home directory contains things like browser cache files that have ':' in them and my Windows Virtual Machine (VMWare Fusion) also often uses ':' in filenames.

Is there anyway to get rsync to escape or otherwise handle these files so that it doesn't create files with invalid filenames on the NAS?

link|improve this question
What's with the duplicate question? – womble Jan 14 '10 at 22:33
Different questions. This one is how to get rsync to handle files with characters not allowed by SMB. The other one asks what is the authoritative list of characters not allowed in SMB (as I don't believe the Data Robotics and Apple doc pages I reference). – fuzzyman Jan 15 '10 at 0:49
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.