Apr 3, 2018

How to exclude folder with tar

If you want to exclude an entire directory, your pattern should match that directory, not files within it. Use --exclude=/data/folder instead of --exclude='/data/folder/*'