ZIP -r XXXX. 20,190,709 . ZIP YYYYY -x " XXXXX / mlsf / * " Note: "" This is the key, do not add "" will not work. ZIP -R & lt Marathon. 20,190,709 . ZIP Marathon the -X- " Marathon / mlsf / * " the tar -zcvf Test. the tar .gz --exclude --exclude = AAA BBB == Test