rsync --exclude=FILE will not work for me

i'm trying to use an exclude file for my rsync backups, instead of having a huge, long command.

this is my command:

rsync -av --exclude-from=/etc/rsyncexclude -e ssh /home /etc /var /usr username@username.server.com

i have a file name rsyncexclude in /etc. it simply contains the following lines:

*.mp3
*.avi
*/logs

and so on....

it is NOT excluding any of the files or folders that i specify in the file. am i doing something wrong?

 

 

 

 

Top