restore — stdin stdout - file -- opt --help --version
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.
|
Print a help message. |
|
Exit the program without restoring any files. |
|
Like the shell’s
|
|
Like the Linux
|
|
Like the shell’s
|
|
Add files or
directories to the “extraction list”: the list of files
you’ll want to restore. With no arguments, |
|
Add the file to the extraction list. |
|
Add the directory dir to the extraction list. |
|
The opposite of
|
|
Remove the file from the extraction list. |
|
Remove the directory dir from the extraction list. |
|
Restore all the files you added to the extraction list. (Tip: if your backup spans multiple tapes, start with the last tape and work backward.) |
restore
also works in other
noninteractive modes:
|
Restore everything
from the backup into an existing filesystem. ( |
|
Restore everything
from the backup into a freshly formatted disk partition. ( |
|
List the contents of the dump. |
|
Compare the dump against the original filesystem. |
18.219.22.107