Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

5.4.2 Magnetic Tape Control

Backup scripts access tape device using special hook functions. These functions take a single argument – the name of the tape device. Their names are kept in the following variables:

— Backup variable: MT_BEGIN

The name of begin function. This function is called before accessing the drive. By default it retensions the tape:

          MT_BEGIN=mt_begin
          
          mt_begin() {
              mt -f "$1" retension
          }
     
— Backup variable: MT_REWIND

The name of rewind function. The default definition is as follows:

          MT_REWIND=mt_rewind
          
          mt_rewind() {
              mt -f "$1" rewind
          }
     
— Backup variable: MT_OFFLINE

The name of the function switching the tape off line. By default it is defined as follows:

          MT_OFFLINE=mt_offline
          
          mt_offline() {
              mt -f "$1" offl
          }
     
— Backup variable: MT_STATUS

The name of the function used to obtain the status of the archive device, including error count. Default definition:

          MT_STATUS=mt_status
          
          mt_status() {
              mt -f "$1" status
          }
     

 
 
  Published under the terms of the GNU General Public License Design by Interspire