web123456

Linux command-dump command (used to back up ext2 or ext3 file systems)

illustrate

dump command is used to backup ext2 or ext3File system. You can back up a directory or the entire file system to a specified device, or back up to
A large file.

grammar

dump(Options)(parameter)
  • 1

Options

-0123456789: The level of backup;
 -b<Block size>: Specify the size of the block, in KB;
 -B<Number of blocks>: Specify the number of blocks to backup volume;
 -c: Modify the density and capacity of the backup tape preset;
 -d<density>: Set the density of the tape.  The unit is BPI;
 -f<Device name>: Specify the backup device;
 -h<Level>: When the backup level is equal to or greater than the specified level, the file marked "nodump" will not be backed up;
 -n: When the backup work requires the intervention of the administrator, issue notifications to all users in the "operator" group;
 -s<Tape length>: The length of the backup tape, in feet;
 -T<date>: Specify the time and date of backup;
 -u: After the backup is completed, record the backup file system, level, date and time, etc. in /etc/dumpdates;
 -w: Similar to -W, but only displays files that need to be backed up;
 -W: Displays the file that needs to be backed up and the level, time and date of the last backup.
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13

parameter

Backup source: Specify the file, directory, or file system to be backed up.

Example

Back up all contents of the /home directory into the /tmp/ file, with the backup level of 0 and
Record relevant information in /etc/dumpdates:

dump -0u -f /tmp/ /home
  • 1

Back up all contents of the /home directory to the /tmp/ file, with the backup level of 1 (only backup the last used tier
Time 0: The data that has changed after backup) and record relevant information in /etc/dumpdates:

dump -1u -f /tmp/ /home
  • 1

Through the backup level of the dump command, complete + incremental backup, complete + differential backup can be achieved, in cooperationcrontabCan achieve unmanned value
Keep the backup.