文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>bady.linux学习笔记之(dump)使用 dump-restore 备..

bady.linux学习笔记之(dump)使用 dump-restore 备..

时间:2007-07-03  来源:bady.hero

$使用 dump/restore 备份和恢复单个文件:
[bady]#   dump -0S /dev/sda1     /* 首先使用 dump 确认备份所需空间,查看一个 0 级别备份所需字节数 */
[bady]#   dump -0u -f /var/tmp/dump_sda1 /dev/sda1 /* 首先确认 /var/tmp 目录有足够空间,将 /dev/sda1 备份到 dump_sda1 */
[bady]#   cat /etc/dumpdates     /* 查看完成备份的时间戳 */
[bady]#   restore -tf /var/tmp/dump_sda1   /* 使用 restore 检查备份文件的内容 */
[bady]#   mkdir /tmp/restored;cd /tmp/restored
[bady]#   restore -if /var/tmp/dump_sda1   /* 使用 restore 的互动模式恢复特定文件到一个目录 */
restore > help
Available commands are:
        ls [arg] - list directory
        cd arg - change directory
        pwd - print current directory
        add [arg] - add `arg' to list of files to be extracted
        delete [arg] - delete `arg' from list of files to be extracted
        extract - extract requested files
        setmodes - set modes of requested directories
        quit - immediately exit program
        what - list dump header information
        verbose - toggle verbose flag (useful with ``ls'')
        prompt - toggle the prompt display
        help or `?' - print this list
If no `arg' is supplied, the current directory is used
restore > ls
.:
System.map            initrd-2.4.20-8.img   module-info-2.4.20-8
System.map-2.4.20-8   kernel.h              os2_d.b
boot.b                lost+found/           vmlinux-2.4.20-8
chain.b               message               vmlinuz
config-2.4.20-8       message.ja            vmlinuz-2.4.20-8
grub/                 module-info
restore > add boot.b      /* 添加要恢复的文件 */
restore > add message
restore > extract       /* 使用 extract 命令恢复选中的文件,设置下个卷名为 1,不设所有者模式 */
restore > quit
[bady]#   ls
$通过上面的步骤相信你已经能够自己搞定咯! 祝贺你。
$本人不喜欢长篇大论,只喜欢简简单单的把事情弄好咯,要是有必要的话,欢迎来邮件跟我探讨!
$E-mail= [email protected]
                                                                  ---bady[八朵云]
相关阅读 更多 +
排行榜 更多 +
一剑灭天

一剑灭天

角色扮演 下载
戮仙战纪

戮仙战纪

角色扮演 下载
头号海贼王手机版

头号海贼王手机版

棋牌卡牌 下载