The rsync --exclude-from
option specifies a file that contains exclude patterns (one per line). It is very picky about the way the pathname is entered. It appears to be a path relative to the current directory. The only option that worked was “--exclude-from=./filename
“. A full path from the root directory didn’t work, nor did a simple file name located in the same directory.