- 论坛徽章:
- 0
|
求助:(自己做实验有点不太明白)
第一步:我想把emilangel这个目录备份,执行如下命令:
[root@nanji home]# ls
emilangel svnuser
[root@nanji home]# dump -0f emilangel.dump emilangel
DUMP: Date of this level 0 dump: Thu Dec 2 19:23:02 2010
DUMP: Dumping /dev/mapper/VolGroup00-LogVol00 (/ (dir home/emilangel)) to emilangel.dump
DUMP: Label: none
DUMP: Writing 10 Kilobyte records
DUMP: mapping (Pass I) [regular files]
DUMP: mapping (Pass II) [directories]
DUMP: estimated 600 blocks.
DUMP: Volume 1 started with block 1 at: Thu Dec 2 19:23:02 2010
DUMP: dumping (Pass III) [directories]
DUMP: dumping (Pass IV) [regular files]
DUMP: Closing emilangel.dump
DUMP: Volume 1 completed at: Thu Dec 2 19:23:03 2010
DUMP: Volume 1 600 blocks (0.59MB)
DUMP: Volume 1 took 0:00:01
DUMP: Volume 1 transfer rate: 600 kB/s
DUMP: 600 blocks (0.59MB) on 1 volume(s)
DUMP: finished in 1 seconds, throughput 600 kBytes/sec
DUMP: Date of this level 0 dump: Thu Dec 2 19:23:02 2010
DUMP: Date this dump completed: Thu Dec 2 19:23:03 2010
DUMP: Average transfer rate: 600 kB/s
DUMP: DUMP IS DONE
[root@nanji home]# ls
emilangel emilangel.dump svnuser
[root@nanji home]#
应该是成功了吧?
第二步:我打算在home目录下建立一个data1文件夹,把dump备份还原到data1文件夹下
[root@nanji home]# mkdir data1
[root@nanji home]# ls
data1 emilangel emilangel.dump svnuser
[root@nanji home]# restore -rf emilangel.dump data1
./lost+found: (inode 11) not found on tape
./boot: (inode 786433) not found on tape
./sys: (inode 589825) not found on tape
./proc: (inode 1179649) not found on tape
./dev: (inode 1114113) not found on tape
./etc: (inode 2228225) not found on tape
./.autorelabel: (inode 98305) not found on tape
./var: (inode 917505) not found on tape
./tmp: (inode 1212417) not found on tape
./root: (inode 1441793) not found on tape
./selinux: (inode 622593) not found on tape
./lib: (inode 2162689) not found on tape
./usr: (inode 1998849) not found on tape
./bin: (inode 2260993) not found on tape
./home/svnuser: (inode 267702) not found on tape
./home/.svn: (inode 270135) not found on tape
./media: (inode 950273) not found on tape
./mnt: (inode 196609) not found on tape
./opt: (inode 1900545) not found on tape
./sbin: (inode 557057) not found on tape
./srv: (inode 262145) not found on tape
./misc: (inode 1933313) not found on tape
./.autofsck: (inode 98306) not found on tape
./net: (inode 425993) not found on tape
./data1: (inode 1376257) not found on tape
./svn: (inode 1048587) not found on tape
./restoresymtable: (inode 98307) not found on tape
[root@nanji home]# ls
data1 emilangel emilangel.dump home restoresymtable svnuser
[root@nanji home]# ls -l data1
total 0
[root@nanji home]# ls -l home
total 4
drwxr-xr-x 3 emilangel emilangel 4096 Sep 8 07:27 emilangel
[root@nanji home]#
可是还原时确还原在当前目录,并没有还原到我指定的目录,而且还原的目录为在home目录下的/home/emilangel。并且多出一个文件 restoresymtable 不知是什么用处,谢谢楼主能帮忙看一下吗?还有那些not found on tape是正常的现象吗? |
|