Centos7 in-depth understanding of file system and log information (2) xfs files
Recovery of XFS files
1. Add a new disk, partition formatted and mounted
two。 Create a file on a new disk
3. Backup file
Xfsdump-f / opt/xfs_dump / dev/sdb1
4. Simulated data loss
5. Restore Fil
Xfsrestore-f / opt/xfs_dump / data/
You can use periodic scheduling tasks to schedule backups in case data is lost and can be recovered later