I use the command:
ls > list to create my exclude list. Then I edit it to add any subdirectories which I want excluded.
rsync -avz -e ssh --delete-after --exclude-from=list /home root@sony:/mnt/backup
Here's what the list may look like ...
Code:
backup
cdbuild/KNOPPIX
cdbuild/INSERT
cdbuild/base
cdbuild/images
distros
mudd
list
netlogon
fred
samba