subject: How to backup Linux system using Dump [print this page] How to backup Linux system using Dump How to backup Linux system using Dump
The dump tool works by making a copy of an entire file system. The restore tool can then take this copy and pull any and all files from it.
To support incremental backups, dump uses the concept of dump levels. A dump level of 0 means afull backup. Any dump level above0 is an incremental relative to the last time a dump with a lower dump level occurred. For example, a dump level of 1 covers all the changes to the file system since the last level 0 dump, a dump level of 2 covers all of the changes to the file system since the last level 1 dump, and so onall the way through dump level 9. Consider a case in which you have three dumps: the first is a level 0, the second is a level 1, and the third is also a level 1. The first dump is, of course, afull backup. The second dump (level 1) contains all the changes made since the first dump. The third dump (also a level 1) also has all the changes.
The dump utility stores all the information about its dumps in the /etc/dumpdates file.
This file lists each backed-up file system, when it was backed up, and at what dump level.
Given this information, you can determine which tape to use for a restore. For example, if you
perform level 0 dumps on Monday, level 1 incrementals on Tuesday and Wednesday, and then
level 2 incrementals on Thursday and Friday, a file that was last modified on Tuesday but got
accidentally erased on Friday can be restored from Tuesday night's incremental backup.
A file that was last modified during the preceding week will be on Monday's level 0 tape.
Using dump
The dump tool is a command-line utility. It takes many parameters,
For example,here is thecommand to perform a level 0 dump to /dev/st0 of the /dev/hda1