You can use, as Gryphius pointed out, the --exclude option for GNU tar .
You can also post-tar the tar archive with tardy .
tardy allows you to do other useful conversions (e.g. prefix archive file paths, change username or group, etc.).
source share