15.7. Restoring data from tape devices
You can restore data from a tape device by using the tar command. For more information, see the mt(1) and tar(1) man pages on your system.
Prerequisites
-
You have installed the
mt-stpackage. For more information, see Installing tape drive management tool. - Data is written to the tape device. For more information, see Writing to rewinding tape devices or Writing to non-rewinding tape devices.
Procedure
For rewinding tape devices
/dev/st0:Restore the
/source/directory/:# tar -xzf /dev/st0 /source/directory/
For non-rewinding tape devices
/dev/nst0:Rewind the tape device:
# mt -f /dev/nst0 rewindRestore the
etcdirectory:# tar -xzf /dev/nst0 /source/directory/