This option is useful when deploying from Mac OS X. The latest Mac OS X (El Capitan) ships with a rsync binary from 2006.
My current use case is when deploying sites that have non-ASCII URLs (file names).
When deploying from Mac OS X to a Linux server the --iconv=utf-8-mac,utf-8 rsync flag is required for properly naming the files on the server. This option, however, is present in rsync 3.0.0, while Mac OS X ships with 2.6.9. Thus I have to install rsync from homebrew and meddle with the PATH environment variable to point to the homebrew rsync.
With this option I don't need to change the PATH environment variable but simply point to the version of rsync which I installed from homebrew.
This option is useful when deploying from Mac OS X. The latest Mac OS X (El Capitan) ships with a rsync binary from 2006.
My current use case is when deploying sites that have non-ASCII URLs (file names). When deploying from Mac OS X to a Linux server the
--iconv=utf-8-mac,utf-8
rsync flag is required for properly naming the files on the server. This option, however, is present in rsync 3.0.0, while Mac OS X ships with 2.6.9. Thus I have to install rsync from homebrew and meddle with the PATH environment variable to point to the homebrew rsync. With this option I don't need to change the PATH environment variable but simply point to the version of rsync which I installed from homebrew.