TrumanWong

restore

The operation performed is opposite to the dump instruction.

Supplementary instructions

restore command is the reverse process of the dump command and is used to restore the backup file generated by the dump command. A dump operation can be used to back up files, and a restore operation can be used to write back those backed up files.

grammar

restore(option)

Options

-b<block size>: Set the block size in Byte;
-c: Do not check the backup format of the dump operation and only allow reading of backup files using the old format;
-C: Use comparison mode to compare the backup file with the current file;
-D<file system>: allows the user to specify the name of the file system;
-f<backup file>: Read the backup data from the specified file and perform the restore operation;
-h: Unlock only the directory without including all files related to the directory;
-i: Use interactive mode. When performing a restore operation, the restore command will ask the user in sequence;
-m: Unpack the file or directory that matches the specified inode number instead of specifying it by the file name;
-r: Perform restore operation;
-R: When fully restoring the file system, where should the check start?
-s<file number>: When the backup data exceeds one tape, the user can specify the number of the backup file;
-t: Specify the file name. If the file already exists in the backup file, list their names;
-v: Display the instruction execution process;
-x: Set file names and read them from the specified storage media. If the file already exists in the backup file, restore it to the file system;
-y: Do not ask any questions, always answer with agreement and continue executing the instructions.

Example

dump -9 -u -f /dev/hda3 /home/frank/

Use the restore command to restore the backup:

restore rf /dev/hda3 /home/frank

Use the restore command to view the file list in the backup file:

restore ft /dev/hda3