码迷,mamicode.com
首页 > 系统相关 > 详细

​dump命令--Linux命令应用大词典729个命令解读

时间:2017-02-18 14:42:25      阅读:239      评论:0      收藏:0      [点我收藏+]

标签:linux命令

内容来源于人民邮电出版社《Linux命令应用大词典》

讲述729个命令,1935个例子

学习Linux系统的参考书、案头书,遇到不懂的命令或命令选项一查即可

争取每天都发布内容


本文出自 “airfish2000” 博客,更多命令查看博客:

http://airfish2000.blog.51cto.com/10829608/1898990



dump命令

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

    命令语法:

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

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

                                  dump命令选项含义

选项

含义

-<备份级别>

指定备份级别,备份级别数字为0~9,其中0是完全备份,其它数字为增量备份

-D <文件>

设置dump备份信息记录的文件名和路径,默认是/etc/dumpdates文件

-f <备份文件名称>

指定备份文件的路径和名称

-u

dump成功后更新/etc/dumpdates文件,会将文件的日期、存储级别、文件系统等信息都记录下来

-T <日期

指定开始备份的日期和时间,而不是从/etc/dumpdates文件中寻找转储时间

-q 

使得dump立即中止

-W 

显示需要备份的文件以及最后一次备份的级别、时间与日期

-w  

-W选项类似,但是只显示/etc/mtab/etc/fstab文件中需要备份的文件系统

-h <级别

当备份级别大于等于指定级别时,将不备份用户标示为nodump的文件

-S

大小估计。确定所需要的空间量而实际上不执行转储,并显示采取的估计数目,单位为字节

-e <inode>

从转储中排除指定的inode。该inode的参数是一个逗号分隔的inode编号的列表

-v  

显示详细信息

 

:完整备份/boot目录。

[root@rhel~]# dump -0uf /root/boot0.dump /boot

  DUMP: Date of this level 0 dump: Mon Aug 1901:02:33 2013

  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: MonAug 19 01:02:33 2013

  DUMP: dumping (Pass III) [directories]

  DUMP: dumping (Pass IV) [regular files]

  DUMP: Closing /root/boot0.dump

  DUMP: Volume 1 completed at: Mon Aug 1901:02:33 2013

  DUMP: Volume 1 23440 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 1901:02:33 2013

  DUMP: Date this dump completed:  Mon Aug 19 01:02:33 2013

  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 1901:02:44 2013

  DUMP: Date of last level 0 dump: Mon Aug 1901:02:33 2013

  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: MonAug 19 01:02:44 2013

  DUMP: dumping (Pass III) [directories]

  DUMP: dumping (Pass IV) [regular files]

  DUMP: Closing /root/boot1.dump

  DUMP: Volume 1 completed at: Mon Aug 1901:02:44 2013

  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 1901:02:44 2013

  DUMP: Date this dump completed:  Mon Aug 19 01:02:44 2013

  DUMP: Average transfer rate: 0 kB/s

  DUMP: DUMP IS DONE


本文出自 “airfish2000” 博客,请务必保留此出处http://airfish2000.blog.51cto.com/10829608/1898990

​dump命令--Linux命令应用大词典729个命令解读

标签:linux命令

原文地址:http://airfish2000.blog.51cto.com/10829608/1898990

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!