O'Reilly logo

Linux Pocket Guide, 2nd Edition by Daniel J. Barrett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required