Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mt-dds(1) [debian man page]

mt-dds(1)						      General Commands Manual							 mt-dds(1)

NAME
mt-dds - tool to control a dds device. SYNOPSIS
mt-dds comp-on|comp-off|comp-query|comp-log mt-dds < tell|label > [ -b # ] DESCRIPTION
mt-dds controls the compression mode of dds tape devices (DAT). mt-dds may also report the current tape position in absolute records (relative to begin of tape) in a format that may be used later by dds2tar(1) to access tar archives that are not the first file on tape. The default device is /dev/nst0, which may be overridden with the environment variable TAPE, which in turn may be overridden with the -f device option. The device must be a character special file. OPTIONS
DDS tape device control options comp-on Enable the hardware compression mode if supported by the device. comp-off Disable the compression mode, switch to normal mode. comp-query Print to stderr if compression mode currently is disabled or enabled. A 0 means compression is disabled, a 1 means compression in enabled. comp-log Print to stdout four lines of information about transferred kilobytes before and after hardware compression from and to the device since initialization. dds2tar service functions tell Print three lines with the current tape position, a block size value (20 by default, may be overridden with -b option) and a block length value (blocksize*512) to stdout. If this output is redirected to a location file locfile, this file may be used by dds2tar(1) to access archives on tape. label If the current tape position is the beginning of an archive and the archive is labeled, mt-dds writes the label to stdout and moves the tape back to the current position (or back over the filemark). ts If the current tape position is the beginning of an archive and the archive is labeled, mt-dds writes the timestamp in octal format to stdout and moves the tape back to the current position (or back over the filemark). If you are using only one computer, the timestamp can be used as a unique archive identifier. -b # Specify the block size # value that is used as a default for the written value with the mt-dds tell command (see above). Also the internal buffer size is specified with this option which is used to read one block in order to get the block size of the current tape block. So specify the block size of the archive or a larger number. other options -f device Device of the tape archive (default is /dev/nst0). Must be a character special file connected to a dds tape device. -V,--version Print the version number of mt-dds to stderr and exit immediately. --help print some screens of online help with examples through a pager and exit immediately. EXAMPLES
Example 1: checking the compression mode of the default tape device mt-dds comp-query Example 2: Write the location information as dds2tar command line options to stdout. mt-dds ENVIRONMENT
The environment variable TAPE overrides the default tape device /dev/nst0. PAGER The environment variable PAGER overrides the builtin pager command ("/bin/more") to display the output of the --help option. SEE ALSO
dds2tar(1), dds2index(1), mt(1), tar(1) HISTORY
This program was created to use it in conjunction with dds2tar. AUTHOR
J"org Weule (weule@cs.uni-duesseldorf.de), Phone +49 211 751409. This software is available at ftp.uni-duesseldorf.de:/pub/unix/apollo 2.4 mt-dds(1)

Check Out this Related Man Page

MT(1)							      General Commands Manual							     MT(1)

NAME
mt - control magnetic tape drive operation SYNOPSIS
mt [-V] [-f device] [--file=device] [--rsh-command=command] [--version] operation [count] DESCRIPTION
This manual page documents the GNU version of mt. mt performs the given operation, which must be one of the tape operations listed below, on a tape drive. The default tape device to operate on is taken from the file /usr/include/sys/mtio.h when mt is compiled. It can be overridden by giving a device file name in the environment variable TAPE or by a command line option (see below), which also overrides the environment variable. The device must be either a character special file or a remote tape drive. To use a tape drive on another machine as the archive, use a filename that starts with `HOSTNAME:'. The hostname can be preceded by a username and an `@' to access the remote tape drive as that user, if you have permission to do so (typically an entry in that user's `~/.rhosts' file). The available operations are listed below. Unique abbreviations are accepted. Not all operations are available on all systems, or work on all types of tape drives. Some operations optionally take a repeat count, which can be given after the operation name and defaults to 1. eof, weof Write count EOF marks at current position. fsf Forward space count files. The tape is positioned on the first block of the next file. bsf Backward space count files. The tape is positioned on the first block of the next file. fsr Forward space count records. bsr Backward space count records. bsfm Backward space count file marks. The tape is positioned on the beginning-of-the-tape side of the file mark. fsfm Forward space count file marks. The tape is positioned on the beginning-of-the-tape side of the file mark. asf Absolute space to file number count. Equivalent to rewind followed by fsf count. seek Seek to block number count. eom Space to the end of the recorded media on the tape (for appending files onto tapes). rewind Rewind the tape. offline, rewoffl Rewind the tape and, if applicable, unload the tape. status Print status information about the tape unit. retension Rewind the tape, then wind it to the end of the reel, then rewind it again. erase Erase the tape. mt exits with a status of 0 if the operation succeeded, 1 if the operation or device name given was invalid, or 2 if the operation failed. OPTIONS -f, --file=device Use device as the file name of the tape drive to operate on. To use a tape drive on another machine, use a filename that starts with `HOSTNAME:'. The hostname can be preceded by a username and an `@' to access the remote tape drive as that user, if you have permission to do so (typically an entry in that user's `~/.rhosts' file). --rsh-command=command Notifies mt that it should use command to communicate with remote devices instead of /usr/bin/ssh or /usr/bin/rsh. -V, --version Print the version number of mt. REPORTING BUGS
Report cpio bugs to bug-cpio@gnu.org GNU cpio home page: <http://www.gnu.org/software/cpio/> General help using GNU software: <http://www.gnu.org/gethelp/> Report cpio translation bugs to <http://translationproject.org/team/> MT(1)
Man Page