Up: exclude
exclude
OptionsSome users find ‘exclude’ options confusing. Here are some common pitfalls:
For example, write:
$ tar -c -f archive.tar --exclude '*.o' directory
rather than:
# Wrong! $ tar -c -f archive.tar --exclude *.o directory
regexp
syntax, when using exclude options in tar. If you try to use
regexp
syntax to describe files to be excluded, your command
might fail.