Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/unix/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Unix tar命令未处理_Unix_Tar_Mount_Solaris 10 - Fatal编程技术网

Unix tar命令未处理

Unix tar命令未处理,unix,tar,mount,solaris-10,Unix,Tar,Mount,Solaris 10,我想将以前备份的目录(spect文件夹)还原到/opt中 体系结构(Solaris 10): 我以前使用tar命令备份过文件夹:tar cvf spect.tar spect。 它已成功运行,当我启动tar-tf spect.tar时,它会将子文件夹/文件显示到中 当我尝试恢复备份时,它不起作用,或者更准确地说,它不返回任何内容,文件最终无法提取 root@sms01sxdg /opt> tar -xvf /export/specbackup_db/spect.tar . root@sms

我想将以前备份的目录(spect文件夹)还原到/opt中

体系结构(Solaris 10):

我以前使用tar命令备份过文件夹:
tar cvf spect.tar spect
。 它已成功运行,当我启动
tar-tf spect.tar
时,它会将子文件夹/文件显示到中

当我尝试恢复备份时,它不起作用,或者更准确地说,它不返回任何内容,文件最终无法提取

root@sms01sxdg /opt> tar -xvf /export/specbackup_db/spect.tar .
root@sms01sxdg /opt> ls -l spect/
total 0
root@sms01sxdg /opt>
我怀疑我备份的文件夹是一个装入点,这是导致此问题的原因

但似乎挂载点仍在挂载。
我总是执行这种命令,但这是我第一次遇到这种命令。

请在删除命令末尾的点后重试。通常,您可以通过在tar文件名ex:tar-xvf tarfile.tar file1 file2之后列出它们的路径来指定应该从tar中提取的文件。这将仅从tarfile.tar中提取文件1和文件2

root@sms01sxdg /opt> tar -xvf /export/specbackup_db/spect.tar .
root@sms01sxdg /opt> ls -l spect/
total 0
root@sms01sxdg /opt>