Problems using rsync to replicate files

We have a central backup system, and we use some scripts to replicate sensitive files from our servers to the central backup.
A problem arises when we try to replicate the /etc dir to the central backup, because we get errors on files which have colons (":") on the names.

Does anyone knows how to avoid this error?

It would help if you could show the commands as they are being executed.
The colon is used as a delimiter on the rsync command line between the
remote host and a path on that host to which files are copied, so if you
have a colon in a path then it may need to be escaped, or handled
somewhere other than the command line (such as an include file).

Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below…