xfs_metadump
使用如下命令备份元数据 [root@rd1 hd-8T]# xfs_metadump /dev/centos/opt ./centos-opt.metadump 使用 xfs_mdrestore 恢复数据 [root@rd1 hd-8T]# xfs_mdrestore ./centos-opt.metadump /mnt/hd-4T-part2/centos-opt.dump [root@rd1 hd-8T]# uuidgen dc081837-a436-4b66-a952-66e2b1143771 [root@rd1 hd-8T]# xfs_admin -U dc081837-a436-4b66-a952-66e2b1143771 /dev/loop0 Clearing log and setting UUID writing all SBs new UUID = dc081837-a436-4b66-a952-66e2b1143771 显示该系统的文件和文件夹,出现乱码 [root@rd1 hd-8T]# mount Continue reading xfs_metadump