Linux restore Command
The Linux restore command is used to restore files or entire file systems (a partition) that have been backed up using the dump operation.
The restore command performs the opposite operation of the dump command. The dump operation is used to back up files, while the restore operation writes these backed-up files back to the system.
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>][files...] or restore [-chmvxy][-b <block size>][-D <file system>][-f <backup file>][-s <file number>][files...]
Parameters:
-b <block size> Set the block size, in bytes.
-c Do not check the backup format of the dump operation, only allow reading of backup files in the old format.
-C Use compare mode, comparing the backed-up files with the current files.
-D <file system> Allow the user to specify the file system name.
-f <backup file> Read the backup data from the specified file for restoration.
-h Extract only directories without including all files related to those directories.
-i Use interactive mode, where the restore command will ask the user for instructions during the restoration process.
-m Extract files or directories matching the specified inode number instead of using file names.
-r Perform restoration.
-R When restoring the entire file system, check where to begin the process.
-s <file number> Specify the backup file number when the backup data exceeds one tape.
-t Specify file names, and if those files exist in the backup file, list their names.
-v Display the progress of the command.
-x Set file names and read them from the specified storage media, restoring them to the file system if they exist in the backup file.
-y Do not ask any questions, always answer yes and continue executing the command.