Chinaunix

标题: 这2个有什么区别?关于恢复 [打印本页]

作者: 燃烧的巴黎    时间: 2008-07-30 12:06
标题: 这2个有什么区别?关于恢复
看了一下 d表示文件恢复
restore -xdvqf /dev/rmt0 /etc/hosts

restore -xvqf  /dev/rmt0 /etc/hosts
那么这个恢复的就不是文件了吗?
作者: EndlessSky    时间: 2008-07-30 12:55
你连man都不看的吗?我也没用过这个命令 man说的够清楚了啊
man里面的解释

-d
            Indicates that, if the File parameter is a directory, all files in that directory should be restored. This flag can
            only be used when the archive is in file-name format.
作者: 燃烧的巴黎    时间: 2008-07-31 12:27
原帖由 EndlessSky 于 2008-7-30 12:55 发表
你连man都不看的吗?我也没用过这个命令 man说的够清楚了啊
man里面的解释

-d
            Indicates that, if the File parameter is a directory, all files in that directory should be restored. Thi ...



我看了   ,所以我说 d表示文件恢复

但是对于restore -xvqf  /dev/rmt0 /etc/hosts来说,没有使用d,同时/etc/hosts也是一个目录,会发生什么?
作者: meilixueshan    时间: 2008-07-31 13:52
This flag can only be used when the archive is “in file-name format”.
懒得继续解释了
作者: yddll    时间: 2008-07-31 22:57
原帖由 燃烧的巴黎 于 2008-7-31 12:27 发表



我看了   ,所以我说 d表示文件恢复

但是对于restore -xvqf  /dev/rmt0 /etc/hosts来说,没有使用d,同时/etc/hosts也是一个目录,会发生什么?


目录也是文件
all are file in the os




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2