Dump

From MEPIS Documentation Wiki

Jump to: navigation, search

Dump and restore are CLI backup utilities. Initially they have been designed to work with tape backups, but they can also back up on harddisks.

Dump can do incremental backups. A command like this backs up the files from a partition:

dump -0uz -f /mnt/backupdrive/filename /dev/partitiontobackup

For an incremental backup (only changes since the last backup) you can run the same command with a different parameter:

dump -1uz -f /mnt/backupdrive/filename1 /dev/partitiontobackup

0 and 1 are backup levels, dump accepts any integers as backup levels. The level 0 specifies a full backup. A level number above 0, specifies incremental backup, tells dump to copy all files new or modified since the last dump of a lower level. The default level is 0.

"z" parameter specifies compression and can take different arguments, without arguments it uses the default compression level.

For backing up specific folders remove "u" parameter and use the folder name instead of /dev/partitiontobackup, incremental backups work only partitions not for folders.

Restore is the companion command that comes with the dump package. Restore command performs the inverse function of dump. A full backup of a file system may be restored and subsequent incremental backups layered on top of it. Single files and directory subtrees may be restored from full or partial backups. Typically a restore command looks like this:

restore rf /mnt/backupdrive/filename
Personal tools