Exclude file types in smbclient tar
I've got a relitivly simple bash script that tries to connect to a remote computer on the network, if it finds the other computer, it runs the line
smbclient //$domain/$dir -A $authFile -TXc $bakDir$domain$us$dir.tar /My\ Documents/My\ Music
This sucessfully does the backup and excludes anything in the 'My Music' directory, however, while testing the bash script on my girlfriends machine, I realized that I REALLY need to be able to exclude certain file types (such as avi, mp3, ogg, mpg, wmv, etc) and I'm wondering the correct syntax.
I set up a little test area and tried the following which did not work:
smbclient //fake_comp_name/bt -A /mnt/hdb/.adrong.bak/auth.txt -TXc /home/adrong/tmp.tar *.avi *.mp3
thanks for any help.