Data Loss Prevention   «Prev  Next»

Lesson 6Linux restore command
Objective Use the restore command to recover file systems.

Linux Restore Command

Without simple file recovery commands, backing up data would be useless. The restore command is a companion to dump. As its name implies, it recovers files and file systems after a loss.

Recovering a entire file system


To recover an entire file system from tape, use the restore command followed by the device. For example:
restore rf /dev/st0

restores from a backup located in /dev/st0:.
Remember that you must create an empty partition using the mkfs command and run the restoration from the empty file system.

Restoring individual files and directories


To recover individual files and directories, use the following syntax to open a restore session:
restore if /dev/st0 

Some important commands available at the restore prompt:
  1. add: Selects files or directories for extraction
  2. delete: Removes files or directories from the extraction list
  3. extract: Performs the recovery of selected files and directories
  4. quit: Exits the restore session
The next lesson describes tape backup applications.

RedhatDump Restore Commands

Before moving on to the next lesson, click the link below to read about the dump and restore commands.
RedhatDump Restore Commands
If you have ever suffered a hard drive crash, you know just how aggravating it can be. You can lose irreplaceable data. You will likely spend countless hours reinstalling your operating system and applications. It is not a fun experience and need happen only once for you to learn the importance of making regular backups of your critical data. Today, larger and faster backup media can simplify the process of backing up your data. Fedora and RHEL support many different types of media, such as writable CD (CD-R and CD-RW), DVD (DVD-R, DVD+R, DVD+RW, and DVD-RW), and magnetic tape, for creating backups. Using tools such as cron, you can configure backups to run unattended at scheduled times.
This chapter describes how to create a backup strategy and how to select media for backing up data on your Fedora or RHEL system. It tells you how to do automated backups and backups over a network. It also describes how to restore individual files, or entire file systems, using tools such as the restore command.