I have tried the following commands:
Code:
tar -cvzf test.tar.gz -X excluded_files .
or
tar -cvzf test.tar.gz --exclude-from=excluded_files .
with the following entries in excluded_files file:
for some reason it doesn't work. all the files get added to the archive. if i explicitely name each of the patterns on the command line it works fine.
Code:
tar -cvzf test.tar.gz --exclude=*.mp3 --exclude=*.ogg --exclude=*.wma .
Any ideas what I am doing wrong in the first example. Is the syntax of the exclude file wrong? I put one entry per line as it says in the man pages of tar.
Thanks in advance for any help,
drisay.