Error with paths with ()'s

@lbutlr
Mon, 17 Aug 2015 06:13:47 -0000

I was trying to process a bunch of folders to sync them to another drive and ran
across an error I haven’t seen before. Normally I do this sync via a mounted
file system, but this time I tried to do it over ssh:

find . -type f -atime -1 -exec rsync -aP {} 10.0.0.11:/Volumes/Drive5/{} \;
bash: -c: line 0: syntax error near unexpected token `('
bash: -c: line 0: `rsync --server -logDtpre.iLsfx --log-format=X --partial .
/Volumes/Drive5/./Taxes (2012)/W2 (2012).pdf'
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(226)
[sender=3.1.1]

If I mount Drive5 and run the same command, it works fine.

Put "/Volumes/Drive5/{}” in quotes doesn’t help.

Ideas?

--
Why can't you be in a good mood? How hard is it to decide to be in a
good mood and be in a good mood once in a while?"