tar: Magnetic Tape Control

1 
1 5.4.2 Magnetic Tape Control
1 ---------------------------
1 
1 Backup scripts access tape device using special "hook functions".  These
1 functions take a single argument -- the name of the tape device.  Their
1 names are kept in the following variables:
1 
1  -- Backup variable: MT_BEGIN
1      The name of "begin" function.  This function is called before
1      accessing the drive.  By default it retensions the tape:
1 
1           MT_BEGIN=mt_begin
1 
1           mt_begin() {
1               mt -f "$1" retension
1           }
1 
1  -- Backup variable: MT_REWIND
1      The name of "rewind" function.  The default definition is as
1      follows:
1 
1           MT_REWIND=mt_rewind
1 
1           mt_rewind() {
1               mt -f "$1" rewind
1           }
1 
1  -- Backup variable: MT_OFFLINE
1      The name of the function switching the tape off line.  By default
1      it is defined as follows:
1 
1           MT_OFFLINE=mt_offline
1 
1           mt_offline() {
1               mt -f "$1" offl
1           }
1 
1  -- Backup variable: MT_STATUS
1      The name of the function used to obtain the status of the archive
1      device, including error count.  Default definition:
1 
1           MT_STATUS=mt_status
1 
1           mt_status() {
1               mt -f "$1" status
1           }
1