# current folder structure under /data/backup
one/
one/ding bingo
one/ding bingo/a
one/that this
one/that this/b
one/that this/a
one/this that
one/this that/b
one/this that/a
one/bingo
two/
two/ding bingo
two/ding bingo/a
two/that this
two/that this/b
two/that this/a
two/b
two/this that
two/this that/b
two/this that/a
# the directories I want to backup
BACKUP_PATHS=('/data/backup/one' '/data/backup/two')
# this does show that all the files will be backed up
rsync -avzpAn "${BACKUP_PATHS[@]}" user@server:/some/destination/path
# now i want to exclude "/data/backup/one/ding bingo" but this still seems to include it
rsync -avzpAn --exclude="/data/backup/one/ding bingo" "${BACKUP_PATHS[@]}" user@server:/some/destination/path