Linux dump command
The Linux dump command is used to back up a file system.
dump is a backup utility that can back up a directory or an entire file system to a specified device, or into a single large file.
Syntax
dump [-cnu][-0123456789][-b <区块大小>][-B <区块数目>][-d <密度>][-f <设备名称>][-h <层级>][-s <磁带长度>][-T <日期>][目录或文件系统] 或 dump [-wW]
Parameters:
- -0123456789 The backup level.
- -b
Specify the block size, in KB. - -B
Specify the number of blocks in the backup volume. - -c Modify the default density and capacity of the backup tape.
- -d
Set the density of the tape. The unit is BPI. - -f
Specify the backup device. - -h
When the backup level is equal to or greater than the specified level, files marked as "nodump" by the user will not be backed up. - -n When the backup requires administrator intervention, notify all users in the "operator" group.
- -s
The length of the backup tape, in feet. - -T
Specify the time and date to start the backup. - -u After the backup is complete, record the backed-up file system, level, date, and time in /etc/dumpdates.
- -w Similar to -W, but only display files that need to be backed up.
- -W Display files that need to be backed up and the level, time, and date of their last backup.
Example
Back Up Files to Tape
# dump -0 -u /dev/tape /home/
The "-0" parameter specifies the backup level; "-u" requires that the corresponding information be stored in the file /etc/dumpdates as a record after the backup is complete
Linux Command Reference