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

extract

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

Restore everything from the backup into an existing filesystem. (cd into the root of the desired filesystem first.)

restore -r

Restore everything from the backup into a freshly formatted disk partition. (cd into the root of the desired filesystem first.)

restore -t

List the contents of the dump.

restore -C

Compare the dump against the original filesystem.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.219.22.107