RMT(8)

๐Ÿ“ฆ version 1.35, in opensuse-leap 16.0

# โœจ RMT(8) โ€” rmt, the remote magnetic tape server โœจ

## ๐Ÿ’– NAME ๐Ÿ’–

okay so rmt is the remote magnetic tape server ๐ŸŽ€ it gives you remote access to files and devices for tar(1), cpio(1), and similar backup utilities ๐Ÿ’…

## ๐Ÿงš SYNOPSIS ๐Ÿงš

rmt

## ๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

bestie, rmt is the remote access queen ๐Ÿ‘‘ it gives you remote access to files and devices for tar(1), cpio(1), and similar backup utilities. it's normally called by running rsh(1) or ssh(1) to the remote machine, and you can optionally use a different login name if one is supplied ๐Ÿซถ

the calling program talks to rmt by sending requests on its standard input and reading replies from the standard output โœจ a request is a request letter, then an argument (if it needs one), then a newline character. any extra data gets sent after the newline ๐Ÿ’Œ

on success, rmt returns:

Anumber\n

where number is an ASCII representation of a decimal return code. any additional data comes back after this line ๐ŸŒธ on error, you get this instead:

Eerrno\nerror-message\n

where errno is one of the system error codes, as described in errno(3), and error-message is a one-line human-readable description of the error, as printed by perror(3) ๐Ÿ˜ญ

the available commands and their possible responses are discussed in detail in the next section ๐ŸŽ€

# ๐Ÿ’… COMMANDS ๐Ÿ’…

  • Odevice\nflags\n โ€” opens the device with the given flags ๐Ÿ”ฅ if a device was already open, it gets closed before the new one opens, so no drama ๐Ÿ™ˆ

๐ŸŽ€ Arguments ๐ŸŽ€

  • device โ€” the name of the device to open.
  • flags โ€” flags for open(2): either a decimal number, or any valid O_* constant from fcntl.h (the initial O_ can be left off), or a bitwise or (using |) of any number of these, e.g.:
576
64|512
CREAT|TRUNC

the combined form is allowed too, meaning a decimal mode followed by its symbolic representation. when that happens, the symbolic representation gets the preference ๐Ÿ’œ

๐Ÿฆ‹ Reply ๐Ÿฆ‹

A0\n on success โœจ

๐ŸŒˆ Extensions ๐ŸŒˆ

the BSD version only allows a decimal number for flags ๐Ÿฅบ

  • C[device]\n โ€” closes the currently open device ๐Ÿ’–

๐ŸŽ€ Arguments ๐ŸŽ€

any arguments are silently ignored ๐Ÿ™ˆ

๐Ÿฆ‹ Reply ๐Ÿฆ‹

A0\n on success โœจ

  • Lwhence\noffset\n โ€” performs an lseek(2) on the currently open device with the specified parameters ๐Ÿงš

๐ŸŽ€ Arguments ๐ŸŽ€

  • whence โ€” where to measure the offset from. valid values are:
0, SET, SEEK_SET   seek from the file beginning
1, CUR, SEEK_CUR   seek from the current location
2, END, SEEK_END   seek from the file end

๐Ÿฆ‹ Reply ๐Ÿฆ‹

Aoffset\n on success. the offset is the new offset in file ๐Ÿซถ

๐ŸŒˆ Extensions ๐ŸŒˆ

the BSD version only allows 0, 1, 2 as whence ๐Ÿฅบ

  • Rcount\n โ€” reads count bytes of data from the current device ๐Ÿ“–

๐ŸŽ€ Arguments ๐ŸŽ€

  • count โ€” number of bytes to read.

๐Ÿฆ‹ Reply ๐Ÿฆ‹

on success, you get:

Ardcount\n

followed by rdcount bytes of data read from the device ๐Ÿ’Œ

  • Wcount\n โ€” writes data onto the current device ๐Ÿ“ the command is followed by count bytes of input data.

๐ŸŽ€ Arguments ๐ŸŽ€

  • count โ€” number of bytes to write.

๐Ÿฆ‹ Reply ๐Ÿฆ‹

on success: Awrcount\n, where wrcount is the number of bytes actually written โœจ

  • Iopcode\ncount\n โ€” performs a MTIOCOP ioctl(2) command with the specified paramedters ๐Ÿ“

๐ŸŽ€ Arguments ๐ŸŽ€

  • opcode โ€” MTIOCOP operation code.
  • count โ€” mt_count.

๐Ÿฆ‹ Reply ๐Ÿฆ‹

on success: A0\n โœจ

  • S\n โ€” returns the status of the currently open device, as obtained from a MTIOCGET ioctl(2) call ๐Ÿ‘€

๐ŸŽ€ Arguments ๐ŸŽ€

None

๐Ÿฆ‹ Reply ๐Ÿฆ‹

on success: Acount\n followed by count bytes of data ๐Ÿ’–


# ๐ŸŒธ SEE ALSO ๐ŸŒธ

tar(1).

# ๐Ÿ™ˆ BUGS ๐Ÿ™ˆ

using this utility as a general-purpose remote file access tool is discouraged ๐Ÿ’€

# ๐Ÿ› BUG REPORTS ๐Ÿ›

report bugs to <bug-tar@gnu.org> ๐Ÿ’Œ

# ๐Ÿ“ HISTORY ๐Ÿ“

the rmt command appeared in 4.2BSD. the GNU rmt was written from scratch, using the BSD specification ๐ŸŽ€

# ๐Ÿ”ฅ COPYRIGHT ๐Ÿ”ฅ

Copyright ยฉ 2013, 2018 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. ๐Ÿซถ


bestie, that's the whole rmt manual, GNU TAR Manual edition, last touched March 24, 2018 โœจ๐Ÿ’–๐Ÿฆ‹ slay forever ๐Ÿ’…๐ŸŒˆ

๐Ÿ“ฆ where this page comes from