Exclude Directories from Tar
When you are creating a tar archive, you often want to exclude directories from the file. This can be done fairly simply with the exclude parameter.
Tip: you can use the --exclude command more than once to exclude another directory as well
tar -cf Filename.tar --exclude "/full/path/to/exclude/" /path/to/tar