I’m having a hard time making an --exclude-from= file correctly exclude directories with spaces with rsync (v3.0.9 from macports).
Trying to ignore a folder named Adele - 21 [2011] flac/
Tried :
- Adele - 21 [2011] flac/
- "Adele - 21 [2011] flac/"
- "Adele\ -\ 21\ [2011]\ flac/"
- 'Adele - 21 [2011] flac/'
- 'Adele\ -\ 21\ [2011]\ flac/'
Tried -s switch.
Still not working…
EDIT : what the hell! This seems to be working :
- Adele - 21 \[2011\] flac/
Your problem is that the parameter for
--excludeis a regular expression.This means
Adele - 21 [2011] flacmatchesAdele - 21followed by one of[012]followed byflacTo fix this, you need to escape the special characters
[and]