English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Linux dump command

Linux Command大全

The Linux dump command is used to back up the file system.

dump is a backup utility program that can back up directories or the entire file system to a specified device, or back up to a large file.

Syntax

dump [-cnu][-0123456789][-b <block size>][-B <block number>][-d <density>][-f <device name>][-h <level>][-s <tape length>][-T <date>][Directory or Filesystem] Or dump [-wW]

Parameters:

  • -0123456789  Backup level.
  • -b<block size>  Specify the block size, in KB.
  • -B<block number>  Specify the number of blocks in the backup volume.
  • -c  Modify the default density and capacity of the backup tape.
  • -d<density>  Set the tape density. 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, files marked as "nodump" by users will not be backed up.
  • -n  When the backup job requires administrator intervention, notify all users in the "operator" group.
  • -s<tape length>  Backup tape length, in feet.
  • -T<date>  Specify the start time and date of the backup.
  • -u  After the backup is completed, in/etc/dumpdates records the backed up filesystem, level, date, and time, etc.
  • -w  Similar to-W similar, but only displays the files to be backed up.
  • -W  Displays the files to be backed up and their last backup level, time, and date.

Online Examples

Backup files to tape

# dump -0 -u /dev/tape /home/

Among them"-0"parameter specifies the backup level"-u"After the backup is completed, store the corresponding information in a file" /etc/dumpdates for record keeping

Linux Command大全