Forcing rsync to convert file names to lower case

Posted by SvrGuy on Server Fault See other posts from Server Fault or by SvrGuy
Published on 2012-04-14T16:25:13Z Indexed on 2012/04/14 17:31 UTC
Read the original article Hit count: 223

Filed under:

We are using rsync to transfer some (millions) files from a Windows (NTFS/CYGWIN) server to a Linux (RHEL) server. We would like to force all file and directory names on the linux box to be lower case.

Is there a way to make rsync automagically convert all file and directory names to lower case? For example, lets say the source file system had a file named:

/foo/BAR.gziP

Rsync would create (on the destination system)

/foo/bar.gzip

Obviously, with NTFS being a case insensitive file system there can not be any conflicts...

Failing the availability of an rsync option, is there an enhanced build or some other way to achieve this effect? Perhaps a mount option on CYGWIN? Perhaps a similar mount option on Linux?

Its RHEL, in case that matters.

© Server Fault or respective owner

Related posts about rsync