Linux restore command
Linux Command Manual
The Linux restore command is used to restore files backed up by the dump operation or the entire file system (a partition).
The restore command performs the opposite operation of the dump command. The dump operation is used to back up files, while the restore operation is used to write back these backed-up files.
Syntax
restore [-cCvy][-b <block size>][-D <file system>][-f <backup file>][-s <file number>] or restore [-chimvy][-b <block size>][-f <backup file>][-s <file number>] or restore [-crvy][-b <block size>][-f <backup file>][-s <file number>] or restore [-cRvy][-b <block size>][-D <file system>][-f <backup file>][-s <file number>] or restore [chtvy][-b <block size>][-D <file system>][-f <backup file>][-s <file number>][file...] or restore [-chmvxy][-b <block size>][-D <file system>][-f <backup file>][-s <file number>][file...]
Parameters:
- -b<block size> Set the block size, unit is Byte.
- -c Do not check the backup format of the dump operation, only allow reading the backup files using the old format.
- -C Use comparison mode to compare the backup files with the current files.
- -D<file system> Allow 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 Only extract the directory without including all the files related to the directory.
- -i Use interactive mode. During the restore operation, the restore command will sequentially ask the user.
- -m Restore the file or directory with the specified inode number instead of using the file name.
- -r Perform the restore operation.
- -R When fully restoring the file system, check where to start.
- -s<file number> When the backup data exceeds one tape, you 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 execution process of the command.
- -x Set the file name and read them from the specified storage medium. If the file already exists in the backup file, restore it to the file system.
- -y Do not ask any questions, always answer in agreement and continue executing the command.
Linux Command Manual