Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use the Linux dump command

Shulou Source: shulou.com Published: 2022-06-01 19:54:04 10月04日 Update

This article introduces the knowledge of "how to use the Linux dump command". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

The Linux common command dump is used to back up ext2 or ext3 file systems. You can back up a directory or an entire file system to a specified device, or to a large file.

Dump is used to back up ext2 or ext3 file systems

Syntax dump (options) (parameters) option-0123456789: backup level;-b: specify the size of chunks in KB;-B: specify the number of chunks in backup volumes;-c: modify the preset density and capacity of backup tapes;-d: set the density of tapes. Unit is BPI;-f: specify backup device;-h: files marked as "nodump" are not backed up when the backup level is equal to or greater than the specified level;-n: notify all users in the "operator" group when the backup requires administrator intervention;-s: length of backup tape in feet;-T: specify backup time and date "- u: after the backup is complete, record the file system, level, date, and time of the backup in / etc/dumpdates;-w: similar to-W, but only show the files that need to be backed up;-W: display the files to be backed up and the level, time, and date of the last backup." Parameter backup source: specify the file, directory, or file system to back up.

The instance backs up all the contents of the / home directory to the / tmp/homeback.bak file with a backup level of 0 and records the relevant information in / etc/dumpdates:

Dump-0u-f / tmp/homeback.bak / home backs up all the contents of the / home directory to the / tmp/homeback.bak file at backup level 1 (only data that has changed since the last backup with level 0) and records the relevant information in / etc/dumpdates:

Dump-1U-f / tmp/homeback.bak / home can realize full + incremental backup, full + differential backup through backup level of dump command, and unattended backup with crontab.

This is the end of "how to use the Linux dump Command". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Tags: Backup file hierarchy system command content directory unit date time tape information block parameter density more knowledge equipment practical learned Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Xiaomi Microsoft Linux macOS