Usage: tar [OPTION...] [FILE]...
GNU `tar' saves many files together into a single tape or disk archive, and can
restore individual files from the archive.
examples:
1、打包一个目录但不包含这个目录里的部分目录
tar -zcvf aaa.tar.gz --exclude=aaa/111 --exclude=aaa/222 aaa
引用关联网址:
来源:https://www.cnblogs.com/koudai191209/p/12015150.html