Thanks for your reply.
Ahh, that makes sense. So "File" refers to a file which lists the directories to be excluded.
Ok I just gave it a go with a small directory (100mb) containing 8 subdirectories. I'm still not getting the syntax right so I'm getting errors.
I was trying to create a tar.gz of /home/LocoMojo/documents. Normally I would issue the command "tar czvf documents.tar.gz ~/documents", but now I'm trying to exclude the ~/documents/web, ~/documents/manuals, and ~/documents/work directories so I wrote up a file called "excludes" like this:
But it still didn't work. I tried issuing the command several different ways.
tar -czvf documents.tar.gz ~/documents -X ~/excludes
tar -czvfX ~/excludes documents.tar.gz ~/documents
tar -X ~/excludes -czvf documents.tar.gz ~/documents
tar -czvf documents.tar.gz ~/documents -X=~/excludes
...and a couple of others, but none of them work.
What is the exact syntax?