dump Linux Commands
What is Linux dump Command?
Explanation
dump COMMAND:dump command makes backup of filesystem or file and directories.
SYNTAX :
dump [options] [dump-file] [File-system or file or directories].
OPTIONS:
-[level] |
The dump level any integer |
-f |
Make the backup in a specified file |
-u |
Updates /etc/dumpdats file for the backup made |
-v |
Displays Verbose Information |
-e |
Exclude inode while making backup |
EXAMPLE:
- To make a backup for a directory or file :
dump -0uf databackup /home/user1/data
This command creates a dump-file called databackup which is the backup of /home/user1/data directory.
In above command: |
-0 | -Is the dump-level [0 specifies full-backup] |
databackup | -Is a dump-file [or backup-file] |
/home/user1/data | -Is a directory for which a backup is created |
- To make a backup for a directory or file which is already backedup with dump level 0:
dump -1uf databackup /home/user1/data
This command backups all the new files added to /home/user1/data directory after level-0 dump is made.
-1 | -Is the dump-level [1 specifies incremental backup] |
databackup | -Is a dump-file [or backup-file] |
/home/user1/data | -Is a directory for which a backup is created |