you can also make an excludes.txt file and populate that.
in my backup script that runs on all of the laptops in the house:
Code:
rsync -aviS --exclude-from=${HOMEDIR}/excludes.txt ${PWD}/ ${RUSER}@${RHOST}:${RDIR}/${dow}/ >> ${log} 2>&1
here is a section of the excludes.txt
Code:
$ cat excludes.txt
- .cache/
- .config/
- .gconf/
- .local/
- .mozilla/
- .thunderbird/
- NFS/
- *.iso
- .steam/
- public/
- .minecraft/
works great. If you wanted to include something else, then you would just use a + foo and your good.