DistributedNetworks DistributedNetworks


Data Loss Prevention   «Prev  Next»

Dump and Restore Commands

This exercise asked you to use the dump command to create a full backup of all files altered in the /home file system, then to test the backup by recovering the entire file system to a temporary partition using the restore command. To perform the initial full backup, you used the dump


               
command: dump 0uf /dev/st0 /home.

The command syntax acts as the following: 0 specifies the dump level (full backup), u indicates that the backup should be recorded in the /etc/dumpdates file, and f allows the user to specify a device or file name.
/dev/st0 is the name of the storage device and /home defines the file system to be archived.
To recover the file system /home, you used the restore command: restore if /dev/st0 /test.
The command syntax acts as the following: i specifies interactive mode and f indicates the name the user gives the dump archive.
/dev/st0 is the name of the dump archive from which to recover the files, and /test is the location to which to extract the files.
Once in the restoration session, you used the interactive commands add, extract, and quit to add the /home file system to the extraction list, perform the extraction, and exit the program.