Magnetic tape is a non-volatile storage medium consisting of a magnetic coating on a thin plastic strip. Nearly all recording tape is of this type, whether used for video, audio storage or general purpose digital data storage using a computer.
Linux (and other Unixish system) use mt command to control magnetic tape drive operation. You need to use mt command while working with tape drive. It allows you to reading and writing to tape.
The default tape drive under Linux is /dev/st0 (first SCSI tape device name). You can read more about tape drives naming convention used under Linux here.
SCSI tape device names The st driver provides the interface to a variety of SCSI tape devices under Linux.
IDE tape device names The ht driver provides the interface to a variety of IDE tape devices under Linux.
You need to use above devices to backup data to magnetic tape.
Following paragraph summaries command you need to use control tape drive for backup/restore purpose.
Rewind tape drive:
# mt -f /dev/st0 rewind
# tar -czf /dev/st0 /etc /home
# mt -f /dev/st0 tell
# tar -tzf /dev/st0
# cd /tmp # mt -f /dev/st0 rewind # tar -xzf /dev/st0 etc
# mt -f /dev/st0 offline
# mt -f /dev/st0 status
# mt -f /dev/st0 erase
# mt -f /dev/nst0 eod
# mt -f /dev/nst0 bsfm 1
# mt -f /dev/nst0 fsf 1