本文适用于 阿曼达企业(AE)
当Amanda服务器崩溃并且所有索引数据丢失时,这些步骤很有用。 这些步骤使您能够从磁带中还原没有该信息的数据。
- 插入包含要还原的数据的磁带
- 以root用户身份登录到Amanda服务器
- 确定磁带设备名称
- 倒带 ; mt -f / dev / nst0快退
- cd到具有足够空间来提取数据的空目录
- 确定要还原的主机名和磁盘名
- 运行 amrestore命令:
amrestore / dev / nst0 hostname.zmanda.com / var
示例输出:[root@bugs restore]# amrestore /dev/nst0 hostname.zmanda.com /var 从磁带 Tape-5 中恢复,从文件 1 开始。amrestore: 1: skipping FILE: date 20070816104124 host hostname.zmanda.com disk / boot lev 0 comp N program /bin/tar amrestore: 2: skipping FILE: date 20070816104124 host localhost disk /etc lev 0 comp N program /bin/tar amrestore: 3: restore FILE: date 20070816104124 host hostname.zmanda.com disk / var lev 0 comp N 程序 /bin/tar
- 存档文件应显示在当前目录中:
[root@host restore]# ls hostname.zmanda.com._var.20070816104124.0
- 使用tar提取档案
tar -vxf 主机名.zmanda.com._var.20070816104124.0
Example Output: [root@bugs restore]# tar -vxf hostname.zmanda.com._var.20070816104124.0 | more ./ ./account/ ./amanda_restore_10/ ./cache/ ./cache/alchemist/ ./cache/alchemist/apache/ ./cache/alchemist/printconf.local/ ./cache/alchemist/printconf.local/wm/ ./cache/alchemist/printconf.rpm/ ./cache/alchemist/printconf.rpm/wm/ ./cache/foomatic/ ./cache/gstreamer-0.8/ ./cache/logwatch/ ./cache/man/ ./cache/man/X11R6/ ./cache/man/X11R6/cat1/ ./cache/man/X11R6/cat2/ ./cache/man/X11R6/cat3/ ./cache/man/X11R6/cat4/