1 | [root@localhost html]# tar zcvf web.tar.gz --exclude=web/Files web |
web/Files为要排除的文件夹路径。
比如要排除web下的files文件夹,不能写为web/files/。 (红色斜杠)
原创文章,转载请注明。本文链接地址: https://www.rootop.org/pages/1384.html
2012-11-15
1 | [root@localhost html]# tar zcvf web.tar.gz --exclude=web/Files web |
web/Files为要排除的文件夹路径。
比如要排除web下的files文件夹,不能写为web/files/。 (红色斜杠)
原创文章,转载请注明。本文链接地址: https://www.rootop.org/pages/1384.html