tar解压bz2文件时出错解决方案
(2011-08-25 12:05:06)
标签:
it |
分类: linux知识 |
剛才使用 tar 命令壓縮文件時出錯:
$tar -cvfz msdiweb.tar.gz /usr/local/apache/htdocs/www
…文件壓縮過程中的具體信息…
tar: Error exit delayed from previous errors.
不知道是什麽原因,趕緊去穀歌,原因如下:
出現「tar: Error exit delayed from previous errors.」錯誤的原因可能是因爲被壓縮的目錄下的文件的權限有問題
可以使用以下命令對權限進行統一設置:
[blog.zxlm.cn@Firehack:/ ]$chown -R root:root
/usr/local/apache/htdocs/www
如果以上方法不起作用,那就嘗試直接以 tar 格式壓縮文件,而非 gzip 壓縮文件:
$tar -cvf msdiweb.tar.gz /usr/local/apache/htdocs/www
英文參考資料:
tar: Error exit delayed from previous errors http://www.aota.net/forums/showthread.php?t=22608
make a zip of old UBB directory? http://www.aota.net/forums/showthread.php?t=5787
Backing up with tar http://www.aota.net/forums/showthread.php?t=15566