Linux dump command
The Linux dump command is used to back up file systems.
dump is a backup utility program that can back up directories or the 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 Backup level.
- -b<block size> Specify the block size, in KB.
- -B<number of blocks> Specify the number of blocks for the backup volume.
- -c Modify the preset density and capacity of the backup tape.
- -d<density> Set the tape density. 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, files marked as "nodump" by the user will not be backed up.
- -n Notify all users in the "operator" group when the backup work requires administrator intervention.
- -s<tape length> The length of the backup tape, in feet.
- -T<date> Specify the time and date to start the backup.
- -u After the backup is complete, record the backed-up file system, level, date, time, etc. in /etc/dumpdates.
- -w Similar to -W, but only displays files that need to be backed up.
- -W Display the files that need to be backed up and the level, time, and date of their last backup.
Examples
Back up files to tape
# dump -0 -u /dev/tape /home/
The "-0" parameter specifies the backup level, and "-u" requires that the corresponding information be stored in the file /etc/dumpdates as a record after the backup is completed.
Other extensions
Linux Command Encyclopedia