linux压缩排除

tar -zcvf www/la.tar.gz --exclude=www/uploadfile --exclude=www/databases --exclude=www/web_logs www

--exclude后跟的是压缩时要排除的目录,这里不能带/,比如www/uploadfile/, 不然还是会打包压缩

原文地址:https://www.cnblogs.com/feng18/p/5841409.html