2008-7-18 16:30
哞哞牛
restore命令的疑问
使用smit backfilesys备份了一个FS
写了2个文件进去。aaa与bbb
然后删除了FS
重新创建了FS
mount进入后,作如下操作
-bash-3.00# restore -Tqf /dev/rmt0
The dump date is Fri Jul 18 13:50:58 BEIST 2008.
Dumped from: Thu Jan 1 08:00:00 BEIST 1970.
2 .
4 ./aaa
5 ./bbb
3 ./lost+found
-bash-3.00#
-bash-3.00# restore -xqvf /dev/rmt0 ./bbb
Verifying archive and initializing maps.
Verifying archive and initializing maps.
The dump date is Fri Jul 18 13:50:58 BEIST 2008.
Dumped from: Thu Jan 1 08:00:00 BEIST 1970.
Extracting directories from media.
Initializing the symbol table.
Extracting requested files.
You have not read any media yet.
Unless you know which volume your file or files are on, you should start
with the last volume and work towards the first volume.
Specify the next volume number: 1 这里只有输入1才行,为什么???
Extracting file ./bbb.
Restore is adding links.
Setting directory mode, owner, and times.
Do you want to set the owner or the mode for the current
directory? [ yes or no ] y
-bash-3.00#
这样就可以从备份中恢复某个指定的文件。但是,没看懂整个过程是啥意思,怎么会有那么多交互式的操作?
[[i] 本帖最后由 哞哞牛 于 2008-7-18 16:36 编辑 [/i]]