作者weiyu.bbs@muse.twbbs.org (Andy) 看板: itoc
標題Re: backupgem.c 無法備份 gem/@
時間謎謎之音 (2007/06/05 Tue 10:57:58)
※ 引述《irvin.bbs@cpu.tfcis.org (艾爾茗)》之銘言:
> 我也發現同樣的問題,tar到@時就停下來了,非常的奇怪...
> 我把backupgem.c的tar加上v,
> 發現他1~9跑完之後,直接停下來,
> 意思就是完全沒有備份到@的任何檔案就掛了。
> 直接手動去gem下面tar看看,tar cvf a.tar @ 會掛掉,
> 把@目錄名mv改掉再tar就正常了,
> 測試結果,@不再第一個字的目錄名都正常,例如a@,@a則根本找不到,
> 不知道是不是6.2x的tar有bug,還是tar改版了,不能用@目錄,
> 還是有什麼參數可以下的漏掉了?
> 總之排除了檔案內容的關係,請各位長輩幫忙想個解法...
> 是不是幫tar Debug,要不就把@目錄換個名字@@?
Unless specifically stated otherwise, options are applicable in all oper-
ating modes.
@archive
(c and r mode only) The specified archive is opened and the
entries in it will be appended to the current archive. As a sim-
ple example,
tar -c -f - newfile @original.tar
writes a new archive to standard output containing a file newfile
and all of the entries from original.tar. In contrast,
tar -c -f - newfile original.tar
creates a new archive with only two entries. Similarly,
tar -czf - --format pax @-
reads an archive from standard input (whose format will be deter-
mined automatically) and converts it into a gzip-compressed pax-
format archive on stdout. In this way, tar can be used to con-
vert archives from one format to another.
我想是因為這個原因
我想最簡單的辦法是改用gtar
不然就是看看有沒有辦法改一些東西
(這我還沒研究)
--
悲�[的人,一直埋怨風向 ‧ ﹒
. · 樂觀的人,一直期待風向 〃
’ ’ * ′ ‘
’ 但是,只有細心、積極的人 〝
。 不斷調整風�|! ’
·
--
◤◥ Origin: 師大音樂˙謎謎之音 muse.twbbs.org
◣◢ Author: weiyu 從 nat235.dynamic.cs.nctu.edu.tw 發表