liunx tar打包,排除某个子目录或文件的命令
oms目录下面有 WEB-INF、web.xml、depository、。。。。
现需打包oms文件夹,但不包含depository,命令如下:
tar -zcvf?oms.tar.gz --exclude=*depository*?oms/