Skip to Content
Linux Pocket Guide, 2nd Edition
book

Linux Pocket Guide, 2nd Edition

by Daniel J. Barrett
March 2012
Beginner to intermediate
230 pages
7h 27m
English
O'Reilly Media, Inc.
Content preview from Linux Pocket Guide, 2nd Edition

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

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Linux Pocket Guide, 3rd Edition

Linux Pocket Guide, 3rd Edition

Daniel J. Barrett
Linux Pocket Guide

Linux Pocket Guide

Daniel J. Barrett

Publisher Resources

ISBN: 9781449332969Errata