Next: User Hooks, Previous: General-Purpose Variables, Up: Backup Parameters
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:
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 }
The name of rewind function. The default definition is as follows:
MT_REWIND=mt_rewind mt_rewind() { mt -f "$1" rewind }