Mys*_*ose 5 linux tar gnu symlink
我正在尝试提取 tarball(确切地说是 *.tgz)并在提取的符号链接上接收终端错误。不幸的是,我不能简单地重新创建存档,因为这是一个已不存在的系统的遗留存档,该系统甚至在我高中毕业之前就创建了(必须喜欢为一家大公司工作)。
我咨询过全能的谷歌;然而,我似乎只能找到在创建时排除/跟随符号链接的信息。我收到的确切错误是用词不当(错误:只读文件系统),并且来自这样一个事实,即数据有效负载的很大一部分包含在众多壁球/填充/循环文件系统中。符号链接引用其中的数据,显然,由于提取所述 tarball 时出现错误而无法安装这些数据。鸡; 遇见鸡蛋。
所以,简而言之:
如何在忽略符号链接或忽略由此产生的符号链接错误的同时提取 *.tgz 存档完成?
以供参考:
$ tar --version
tar (GNU tar) 1.26
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by John Gilmore and Jay Fenlason.
$ uname -a
Linux localhost.localdomain 3.7.9-205.fc18.x86_64 #1 SMP Sun Feb 24 20:10:02 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
Run Code Online (Sandbox Code Playgroud)
小智 5
-h(或--dereference)取消引用仅在创建时起作用。
参考:http : //www.gnu.org/software/tar/manual/tar.html#SEC138
根据此处的类似答案:How do I dereference links when extracting from a tar file? 您可以安装存档然后从中复制,尽管我自己没有测试过。
归档时间: |
|
查看次数: |
9395 次 |
最近记录: |