Mtape

From MidasWiki
Jump to navigation Jump to search


Purpose

mtape is a utility provided in the Midas package for tape manipulation.

Usage

mtape [-f tape_device] [-d file] [-v] command [count] [last]

Following commands are available:

 status     Print status information about tape
 rewind     Rewind tape
 eof,weof   Write <count> End-of-File marks at the current tape position
 fsf,ff     Forward spaces <count> files
 fsr,fr     Forward spaces <count> records
 bsf,bf     Backspaces <count> files
 bsr,br     Backspaces <count> records
 rewind     Rewind tape
 offline    Places the tape offline (unload)
 online     Places the tape online (load)
 seod       Space to end of recorded data

Following commands only work with tapes written in MIDAS format:

 dir        List next [count] runs on MIDAS tape
 backup
            Copy runs with numbers [count] to [last] from disk to tape.
            If [-d file] is not given, runxxxxx.mid is used where
            xxxxx is the run number. If [file] contains %05d, it
            is replaced by the run number.
 restore
            Copy next [count] files from tape to disk.
            If [-d file] is not given, runxxxxx.mid is used where
            xxxxx is the run number. If [file] contains %05d, it
            is replaced by the run number.