Nov 10, 2018

Example usage of tar in linux

tar --exclude=pmta/inbound -cvzf etc.pmta.`date +%F`.tgz pmta

use --exclude to exclude the file/folder

Be careful that if you use --exclude='inbound', it will also exclude pmta/blah/blah/inbound.