• Linux -xfs 增量备份恢复


    4 增量备份恢复
    #首次备份
    xfsdump -f /opt/dump_test_full /dump_test -L dum_test_full -M beifen0

    [root@donglian dump_test]# xfsdump -f /opt/dump_test_full /dump_test -L dum_test_full -M beifen0
    xfsdump: using file dump (drive_simple) strategy
    xfsdump: version 3.1.7 (dump format 3.0) - type ^C for status and control
    xfsdump: level 0 dump of donglian:/dump_test
    xfsdump: dump date: Mon May 11 14:20:12 2020
    xfsdump: session id: 6d6d2e4f-d9b6-46cb-86a8-a23d37c0d608
    xfsdump: session label: "dum_test_full"
    xfsdump: ino map phase 1: constructing initial dump list
    xfsdump: ino map phase 2: skipping (no pruning necessary)
    xfsdump: ino map phase 3: skipping (only one dump stream)
    xfsdump: ino map construction complete
    xfsdump: estimated dump size: 36032 bytes
    xfsdump: creating dump session media file 0 (media 0, file 0)
    xfsdump: dumping ino map
    xfsdump: dumping directories
    xfsdump: dumping non-directory files
    xfsdump: ending media file
    xfsdump: media file size 33208 bytes
    xfsdump: dump size (non-dir files) : 5184 bytes
    xfsdump: dump complete: 0 seconds elapsed
    xfsdump: Dump Summary:
    xfsdump: stream 0 /opt/dump_test_full OK (success)
    xfsdump: Dump Status: SUCCESS

    首次增量备份
    xfsdump -l 1 -f /opt/dump_test_pack1 /dump_test -L dum_test_pack1 -M beifen1

    [root@donglian dump_test]# xfsdump -l 1 -f /opt/dump_test_pack1 /dump_test -L dum_test_pack1 -M beifen1
    xfsdump: using file dump (drive_simple) strategy
    xfsdump: version 3.1.7 (dump format 3.0) - type ^C for status and control
    xfsdump: level 1 incremental dump of donglian:/dump_test based on level 0 dump begun Mon May 11 14:2
    0:12 2020
    xfsdump: dump date: Mon May 11 14:32:13 2020
    xfsdump: session id: 5e026335-71c8-4aa7-affd-800e10a0d214
    xfsdump: session label: "dum_test_pack1"
    xfsdump: ino map phase 1: constructing initial dump list
    xfsdump: ino map phase 2: pruning unneeded subtrees
    xfsdump: ino map phase 3: skipping (only one dump stream)
    xfsdump: ino map construction complete
    xfsdump: estimated dump size: 21120 bytes
    xfsdump: creating dump session media file 0 (media 0, file 0)
    xfsdump: dumping ino map
    xfsdump: dumping directories
    xfsdump: dumping non-directory files
    xfsdump: ending media file
    xfsdump: media file size 21392 bytes
    xfsdump: dump size (non-dir files) : 0 bytes
    xfsdump: dump complete: 0 seconds elapsed
    xfsdump: Dump Summary:
    xfsdump: stream 0 /opt/dump_test_pack1 OK (success)
    xfsdump: Dump Status: SUCCESS


    第二次增量备份
    xfsdump -l 2 -f /opt/dump_test_pack2 /dump_test -L dum_test_pack2 -M beifen2

    [root@donglian dump_test]# xfsdump -l 2 -f /opt/dump_test_pack2 /dump_test -L dum_test_pack2 -M beif
    en2
    xfsdump: using file dump (drive_simple) strategy
    xfsdump: version 3.1.7 (dump format 3.0) - type ^C for status and control
    xfsdump: level 2 incremental dump of donglian:/dump_test based on level 1 dump begun Mon May 11 14:3
    2:13 2020
    xfsdump: dump date: Mon May 11 14:34:33 2020
    xfsdump: session id: 12c9f9ee-3d4c-4740-9c5e-1d9d63163385
    xfsdump: session label: "dum_test_pack2"
    xfsdump: ino map phase 1: constructing initial dump list
    xfsdump: ino map phase 2: pruning unneeded subtrees
    xfsdump: ino map phase 3: skipping (only one dump stream)
    xfsdump: ino map construction complete
    xfsdump: estimated dump size: 21120 bytes
    xfsdump: creating dump session media file 0 (media 0, file 0)
    xfsdump: dumping ino map
    xfsdump: dumping directories
    xfsdump: dumping non-directory files
    xfsdump: ending media file
    xfsdump: media file size 21424 bytes
    xfsdump: dump size (non-dir files) : 0 bytes
    xfsdump: dump complete: 0 seconds elapsed
    xfsdump: Dump Summary:
    xfsdump: stream 0 /opt/dump_test_pack2 OK (success)
    xfsdump: Dump Status: SUCCESS

    恢复完全备份
    xfsrestore -f /opt/dump_test_full /dump_test

    [root@donglian dump_test]# xfsrestore -f /opt/dump_test_full /dump_test
    xfsrestore: using file dump (drive_simple) strategy
    xfsrestore: version 3.1.7 (dump format 3.0) - type ^C for status and control
    xfsrestore: searching media for dump
    xfsrestore: examining media file 0
    xfsrestore: dump description:
    xfsrestore: hostname: donglian
    xfsrestore: mount point: /dump_test
    xfsrestore: volume: /dev/sdb1
    xfsrestore: session time: Mon May 11 14:20:12 2020
    xfsrestore: level: 0
    xfsrestore: session label: "dum_test_full"
    xfsrestore: media label: "beifen0"
    xfsrestore: file system id: 9b65ee97-f7fe-41f9-80fc-10ad38a0e999
    xfsrestore: session id: 6d6d2e4f-d9b6-46cb-86a8-a23d37c0d608
    xfsrestore: media id: 392bb590-d1c0-457a-9023-b20f92e5de0f
    xfsrestore: using online session inventory
    xfsrestore: searching media for directory dump
    xfsrestore: reading directories
    xfsrestore: 3 directories and 22 entries processed
    xfsrestore: directory post-processing
    xfsrestore: restoring non-directory files
    xfsrestore: restore complete: 0 seconds elapsed
    xfsrestore: Restore Summary:
    xfsrestore: stream 0 /opt/dump_test_full OK (success)
    xfsrestore: Restore Status: SUCCESS
    [root@donglian dump_test]# ls #显示文件信息
    passwd test
    恢复一级别备份
    [root@donglian dump_test]# xfsrestore -f /opt/dump_test_pack1 /dump_test
    xfsrestore: using file dump (drive_simple) strategy
    xfsrestore: version 3.1.7 (dump format 3.0) - type ^C for status and control
    xfsrestore: searching media for dump
    xfsrestore: examining media file 0
    xfsrestore: dump description:
    xfsrestore: hostname: donglian
    xfsrestore: mount point: /dump_test
    xfsrestore: volume: /dev/sdb1
    xfsrestore: session time: Mon May 11 14:34:33 2020
    xfsrestore: level: 1
    xfsrestore: session label: "dum_test_pack1"
    xfsrestore: media label: "beifen2"
    xfsrestore: file system id: 9b65ee97-f7fe-41f9-80fc-10ad38a0e999
    xfsrestore: session id: 12c9f9ee-3d4c-4740-9c5e-1d9d63163385
    xfsrestore: media id: c1a6857e-6c34-4b04-b465-2ac2d05c5e35
    xfsrestore: using online session inventory
    xfsrestore: searching media for directory dump
    xfsrestore: reading directories
    xfsrestore: 1 directories and 4 entries processed
    xfsrestore: directory post-processing
    xfsrestore: restoring non-directory files
    xfsrestore: restore complete: 0 seconds elapsed
    xfsrestore: Restore Summary:
    xfsrestore: stream 0 /opt/dump_test_pack1 OK (success)
    xfsrestore: Restore Status: SUCCESS
    恢复一级别备份
    [root@donglian dump_test]# xfsrestore -f /opt/dump_test_pack2 /dump_test
    xfsrestore: using file dump (drive_simple) strategy
    xfsrestore: version 3.1.7 (dump format 3.0) - type ^C for status and control
    xfsrestore: searching media for dump
    xfsrestore: examining media file 0
    xfsrestore: dump description:
    xfsrestore: hostname: donglian
    xfsrestore: mount point: /dump_test
    xfsrestore: volume: /dev/sdb1
    xfsrestore: session time: Mon May 11 14:34:33 2020
    xfsrestore: level: 2
    xfsrestore: session label: "dum_test_pack2"
    xfsrestore: media label: "beifen2"
    xfsrestore: file system id: 9b65ee97-f7fe-41f9-80fc-10ad38a0e999
    xfsrestore: session id: 12c9f9ee-3d4c-4740-9c5e-1d9d63163385
    xfsrestore: media id: c1a6857e-6c34-4b04-b465-2ac2d05c5e35
    xfsrestore: using online session inventory
    xfsrestore: searching media for directory dump
    xfsrestore: reading directories
    xfsrestore: 1 directories and 4 entries processed
    xfsrestore: directory post-processing
    xfsrestore: restoring non-directory files
    xfsrestore: restore complete: 0 seconds elapsed
    xfsrestore: Restore Summary:
    xfsrestore: stream 0 /opt/dump_test_pack2 OK (success)
    xfsrestore: Restore Status: SUCCESS
    [root@donglian dump_test]

  • 相关阅读:
    js修改div标签中的内容
    echarts如何显示在页面上
    mybatis提取<where><if>共用代码
    部署LAMP-LAMP平台集成
    PHP安装指南
    部署LAMP-mysql 安装
    apache虚拟主机
    apache默认网站
    HDU 5375 Gray code 格雷码(水题)
    HDU 5371 Hotaru's problem (Manacher,回文串)
  • 原文地址:https://www.cnblogs.com/donglian1/p/12869296.html
Copyright © 2020-2023  润新知