restore Linux Commands

What is Linux restore Command?


restore COMMAND:

restore - command restores the data from the dump-file or backup-file created using dump command.


restore [options]


-f Used to specify the backup or dump file
-C Used to compare dump-file with original file
-i Restore in Interactive mode
-v Displays Verbose Information
-e Exclude inode while making backup

Commands used in interactive mode:
ls List the files and directories in backup file
add Add files in dump-file to current working directory
cd Changes the directory
pwd Displays the current working directory
extract Extract the files from the dump
quit Quit from the interactive mode


  1. To restore file and directories from backup-file :
    restore -if databack

    i-To make restore with interactive mode
    f-To restore from the backup-file specifed
    databack -Is a name of backup-file or dump-file
    This command gets you to interactive mode as follows:
    restore >
    Now the following commands are entered to restore:
    restore > ls-Lists files and directories in dump file
    restore > add-add files to the current directory
    restore > ls-Lists the file added from the backup file to current directory
    restore > extract-Extracts the file from the backup file to current directory
    restore > quit-Quits from the interactive mode
  2. To compare and display any dump-file with the original file:
    restore -Cf databack

    This command will compare,
    -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

Ask Questions

Ask Question