Linux命令tar压缩排除指定目录的方法

例如我要压缩 /cat/backup 这个文件夹 (绝对路径),但是不将里面的图片文件夹img也压缩了.可以用tar命令的–exclude 排除掉.方法

排除多个目录

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

猫言猫语 © 2007-2014 Frontier Theme