Linux dump命令

Linux dump命令:ext2/3/4文件系统备份。

Linux dump命令 功能描述

使用dump命令可以检查ext2/3/4文件系统上的文件,并确定哪些文件需要备份。这些文件复制到指定的磁盘、磁带或其他存储介质保管。

Linux dump命令 语法

dump [选项] [目录|文件系统]

命令中各选项的含义如表所示。

dump命令选项含义

Linux dump命令 示例

完整备份/boot目录

[root@rhel ~]# dump -0uf /root/boot0.dump /boot
  DUMP: Date of this level 0 dump: Mon Aug 19 01:02:332013
  DUMP: Dumping /dev/sda1 (/boot) to /root/boot0.dump
  DUMP: Label: none
  DUMP: Writing 10 Kilobyte records
  DUMP: mapping (Pass I) [regular files]
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 23349 blocks.
  DUMP: Volume 1 started with block 1 at: Mon Aug 19 01:02:332013
  DUMP: dumping (Pass III) [directories]
  DUMP: dumping (Pass IV) [regular files]
  DUMP: Closing /root/boot0.dump
  DUMP: Volume 1 completed at: Mon Aug 19 01:02:332013
  DUMP: Volume 123440 blocks (22.89MB)
  DUMP: 23440 blocks (22.89MB) on 1 volume(s)
  DUMP: finished in less than a second
  DUMP: Date of this level 0 dump: Mon Aug 19 01:02:332013
  DUMP: Date this dump completed:  Mon Aug 19 01:02:332013
  DUMP: Average transfer rate: 0 kB/s
  DUMP: DUMP IS DONE

增量备份/boot目录

[root@rhel ~]# dump -1uf /root/boot1.dump /boot
  DUMP: Date of this level 1 dump: Mon Aug 19 01:02:442013
  DUMP: Date of last level 0 dump: Mon Aug 19 01:02:332013
  DUMP: Dumping /dev/sda1 (/boot) to /root/boot1.dump
  DUMP: Label: none
  DUMP: Writing 10 Kilobyte records
  DUMP: mapping (Pass I) [regular files]
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 21 blocks.
  DUMP: Volume 1 started with block 1 at: Mon Aug 19 01:02:442013
  DUMP: dumping (Pass III) [directories]
  DUMP: dumping (Pass IV) [regular files]
  DUMP: Closing /root/boot1.dump
  DUMP: Volume 1 completed at: Mon Aug 19 01:02:442013
  DUMP: Volume 1 20 blocks (0.02MB)
  DUMP: 20 blocks (0.02MB) on 1 volume(s)
  DUMP: finished in less than a second
  DUMP: Date of this level 1 dump: Mon Aug 19 01:02:442013
  DUMP: Date this dump completed:  Mon Aug 19 01:02:442013
  DUMP: Average transfer rate: 0 kB/s
  DUMP: DUMP IS DONE

Camera课程

Python教程

Java教程

Web教程

数据库教程

图形图像教程

办公软件教程

Linux教程

计算机教程

大数据教程

开发工具教程