Name

restore — stdin  stdout  - file  -- opt  --help  --version

Synopsis

restore [options] [files]

The restore command reads a backup created by dump. It can then restore the files to disk, compare them against those on disk, and other operations. The friendliest way to use restore is with the -i flag for interactive operation, which lets you browse the dumped contents just like a filesystem, selecting files and directories, and finally restoring them.

# restore -i -f /dev/tape

restore then prompts you for commands like the ones listed below.

help

Print a help message.

quit

Exit the program without restoring any files.

cd dir

Like the shell’s cd command, set your current working directory within the dump for working with files.

ls

Like the Linux ls command, view all files in the current working directory within the dump.

pwd

Like the shell’s pwd command, print the name of your current working directory within the dump.

add

Add files or directories to the “extraction list”: the list of files you’ll want to restore. With no arguments, add adds the current directory and all its files.

add file

Add the file to the extraction list.

add dir

Add the directory dir to the extraction list.

delete

The opposite of add: remove files from the extraction list. If run with no arguments, delete removes the current directory (and its contents) from the extraction list.

delete file

Remove the file from the extraction list.

delete dir

Remove the directory dir from the extraction ...

Get Linux Pocket Guide, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.