作者:最佳牛牛1 | 来源:互联网 | 2023-09-24 04:47
我是这么写的,
1
| dump -0uan -f /tmp/server-full-backup-`date '+%d-%B-%Y'`.dump / |
肯定不对啊,把cdrom proc都备份进去了
还原的时候
[root@localhost tmp]# xfsrestore -f server-full-backup-02-May-2019.dump /
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: localhost.localdomain
xfsrestore: mount point: /
xfsrestore: volume: /dev/mapper/centos-root
xfsrestore: session time: Thu May 2 10:45:17 2019
xfsrestore: level: 0
xfsrestore: session label: "gh"
xfsrestore: media label: "ghj"
xfsrestore: file system id: 66469879-5572-4b84-9415-06fb87cd2f2b
xfsrestore: session id: c56383a8-b77e-4ee5-96d3-3047482da146
xfsrestore: media id: 3ed3a251-48bb-42a6-bd0b-488249e5fea0
xfsrestore: using online session inventory
xfsrestore: searching media for directory dump
xfsrestore: reading directories
xfsrestore: 18703 directories and 203144 entries processed
xfsrestore: directory post-processing
xfsrestore: WARNING: unable to set secure extended attribute for var/lib/nfs/rpc_pipefs: Operation not supported (95)
xfsrestore: WARNING: unable to set secure extended attribute for sys: Operation not supported (95)
xfsrestore: WARNING: unable to set secure extended attribute for proc: Operation not supported (95)
xfsrestore: restoring non-directory files
xfsrestore: NOTE: ino 68103552 gen 993728409 not referenced: placing in orphanage
xfsrestore: NOTE: ino 101883497 gen 1919238245 not referenced: placing in orphanage
xfsrestore: NOTE: ino 101883501 gen 2635724939 not referenced: placing in orphanage
xfsrestore: WARNING: path_to_handle of var/lib/nfs/rpc_pipefs failed:Inappropriate ioctl for device
xfsrestore: WARNING: attempt to set extended attributes (xflags 0x80000000, extsize = 0x0, projid = 0x0) of var/lib/nfs/rpc_pipefs failed: Bad file descriptor
xfsrestore: WARNING: path_to_handle of sys failed:Inappropriate ioctl for device
xfsrestore: WARNING: attempt to set extended attributes (xflags 0x80000000, extsize = 0x0, projid = 0x0) of sys failed: Bad file descriptor
xfsrestore: WARNING: path_to_handle of run failed:Inappropriate ioctl for device
xfsrestore: WARNING: attempt to set extended attributes (xflags 0x80000000, extsize = 0x0, projid = 0x0) of run failed: Bad file descriptor
xfsrestore: WARNING: path_to_handle of proc failed:Inappropriate ioctl for device
xfsrestore: WARNING: attempt to set extended attributes (xflags 0x80000000, extsize = 0x0, projid = 0x0) of proc failed: Bad file descriptor
xfsrestore: WARNING: open_by_handle of home failed:Bad file descriptor
xfsrestore: WARNING: attempt to set extended attributes (xflags 0x80000000, extsize = 0x0, projid = 0x0) of home failed: Bad file descriptor
xfsrestore: WARNING: path_to_handle of dev failed:Inappropriate ioctl for device
xfsrestore: WARNING: attempt to set extended attributes (xflags 0x80000000, extsize = 0x0, projid = 0x0) of dev failed: Bad file descriptor
xfsrestore: WARNING: open_by_handle of boot failed:Bad file descriptor
xfsrestore: WARNING: attempt to set extended attributes (xflags 0x80000000, extsize = 0x0, projid = 0x0) of boot failed: Bad file descriptor
xfsrestore: WARNING: unable to rmdir /orphanage: Directory not empty
xfsrestore: restore complete: 1165 seconds elapsed
xfsrestore: Restore Summary:
xfsrestore: stream 0 /tmp/server-full-backup-02-May-2019.dump OK (success)
xfsrestore: Restore Status: SUCCESS
1 这些warning是什么意思
2究竟该怎么dump整个系统啊
多谢了。
网上只举了备份了某个目录的例子,都找不到备份整个系统的例子,坑。