<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[静怡家园]]></title> 
<link>http://www.zhanghaijun.com/index.php</link> 
<description><![CDATA[书山有路勤为径，学海无涯苦作舟！]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[静怡家园]]></copyright>
<item>
<link>http://www.zhanghaijun.com/post//</link>
<title><![CDATA[tar 排除指定目录打包]]></title> 
<author>碟舞飞扬 &lt;webmaster@zhanghaijun.com&gt;</author>
<category><![CDATA[Linux技术]]></category>
<pubDate>Wed, 01 May 2013 18:17:42 +0000</pubDate> 
<guid>http://www.zhanghaijun.com/post//</guid> 
<description>
<![CDATA[ 
	如果 /opt/apache/目录下有 a b c d&nbsp;&nbsp;这几个目录<br/>现在要将 a b目录tar打包,不打包c d目录<br/><br/>命令如下,当前在opt目录下<br/><br/>opt>&nbsp;&nbsp;tar -zcvf apache.tar.gz --exclude=c --exclude=d&nbsp;&nbsp;&nbsp;&nbsp;apache<br/>或<br/>opt> tar -zcvf test.tar.gz --exclude=/apache/c --exclude=apache/d&nbsp;&nbsp; apache<br/> <br/><br/>注意: 要打包的目录要放在最后面的！<br/><br/><hr/><br/>tar分卷压缩：tar cvzpf - somedir &#124; split -d -b 500m (-d不是split的选项，是shell的选项，表<br/>示将tar命令的输出作为split的输入)<br/>tar多卷合并：cat x* > mytarfile.tar.gz<br/>Tags - <a href="http://www.zhanghaijun.com/tags/tar/" rel="tag">tar</a> , <a href="http://www.zhanghaijun.com/tags/%25E6%258E%2592%25E9%2599%25A4%25E7%259B%25AE%25E5%25BD%2595/" rel="tag">排除目录</a>
]]>
</description>
</item><item>
<link>http://www.zhanghaijun.com/post//#blogcomment</link>
<title><![CDATA[[评论] tar 排除指定目录打包]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.zhanghaijun.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>