灰色的灵魂

黑夜给了我黑色的眼睛, 而我注定要用它来寻找美金

灰色的灵魂 header image 2

奇怪的tar的问题

January 7th, 2009 · No Comments · Life

很奇怪的问题,在用脚本打包rails project然后上传服务器,因为本机和服务器间的网速很慢,而git会生成很多以._开头的文件,为了让tar包小一点,要把这些文件去掉,用了这样一条命令

tar -zcvf abc.tar.gz –exclude abc/\.git –exclude *\._* abc

在Centos下work得很好,但是在我的Mac上._开头的文件仍然在tar包中,两边的tar的版本都是tar (GNU tar) 1.15.1,这是为什么呢?或者谁能告诉我在Mac下应该怎么做?

Tags:

No Comments so far ↓

There are no comments yet...Kick things off by filling out the form below.

Leave a Comment