Install package Yum Install-y dump
Dump [option] The file name of the original file or directory after backup. Backup specified mount point (only ext2, ext3 file system supported)
-level 0-9 10 backup levels, level is digital, 0 is full backup, 1 is the first incremental backup, and so on
-F file name after backup
After you have successfully backed up, log the backup time to/etc/dumpdates
-V shows more output information during backup
-j Call Bzlib Library to compress the backup file, that is, to compress the backup file into. bz2 format
-W Displays the backup level and backup time of the partition that is allowed to be dump
Example: Dump-0uj-f/root/boot.bak.bz2/boot
restore [mode options] [options]. Revert to the specified mount point (ext2, ext3 file system only)
-C Compare backup data and actual data changes
-I enter interactive mode, manually select the files that need to be recovered
-T view mode for viewing the data in the backup file
-R Restore Mode (will revert to the current folder)
-f Specifies the file name of the backup files
Xfsdump Backup Specifies mount point (xfs file system only)
-L record each backup session header, you can fill in a simple description
-M can record the header of the storage media and can fill in a simple description of this media
-l Specifies 0-9 total 10 levels (0 for full backup, 1 for first incremental backup)
-F file name after backup
Example: Xfsdump-l 0-f/root/boot.bak.xfsdump/boot-l boot_dump-m boot_dump
Xfsrestore restore to a specified mount point (XFS file system only)
-L Display Backup information
-f Specifies the file name of the backup files
-L is the Label name of the Session! The data that can be queried by-I is entered after this option
-S requires a specific directory to recover only a file or directory
Example: Xfsrestore-f/root/boot.bak.2.xfsdump/boot
Linux backup dump and reset restore