Research V3 development
[unix-history] / man / man1 / mt.1
CommitLineData
4a420619
KT
1.pa 1
2.he 'MT (I)'6/12/72'MT (I)'
3.ti 0
4NAME mt -- manipulate magtape
5.sp
6.ti 0
7SYNOPSIS mt\b\b__ [ key ] [ name ... ]
8.sp
9.ti 0
10DESCRIPTION mt\b\b__
11saves and restores selected portions of the file system
12hierarchy on magtape.
13Its actions are controlled by the key\b\b\b___ argument.
14The key is a string of characters containing
15at most one function letter and possibly
16one or more function modifiers.
17Other arguments to the command are file or directory
18names specifying which files are to be dumped, restored,
19or tabled.
20
21The function portion of
22the key is specified by one of the following letters:
23
24.in +6
25.ti -3
26r The indicated files and directories, together with
27all subdirectories, are dumped
28onto the tape.
29The old contents of the tape are lost.
30
31.ti -3
32x extracts the named files from the tape to the file system.
33The owner, mode, and date-modified are restored to what they
34were when the file was dumped.
35If no file argument is given, the entire contents of the
36tape are extracted.
37
38.ti -3
39t lists the names of all files stored on the tape which
40are the same as or are hierarchically below
41the file arguments. If no file argument is given,
42the entire contents of the tape are tabled.
43
44.ti -3
45l is the same as t\b_ except that an expanded listing
46is produced giving all the available information about the
47listed files.
48
49.in -6
50The following characters may be used in addition to the letter
51which selects the function desired.
52
53.in +6
54.ti -3
550, ..., 7 This modifier selects the drive on which the tape is mounted.
56"0" is the default.
57
58.ti -3
59v Normally mt\b\b__ does its work silently. The v\b_ (verbose)
60option causes it to type the name of each file it treats
61preceded by a letter to indicate what is happening.
62
63.in +2
64 a file is being added
65 x file is being extracted
66
67.in -2
68The v\b_ option can be used with r\b_ and x\b_ only.
69
70.ti -3
71f causes
72new entries copied on tape to be 'fake' in that
73only the entries, not the data associated
74with the entries are updated.
75Such fake entries cannot be extracted.
76Usable only with r\b_.
77
78.ti -3
79w causes mt\b\b__ to pause before treating each file, type
80the indicative letter and the file name (as with v\b_)
81and await the user's response. Response
82"y" means "yes", so the file is treated. Null response
83means "no", and the file does not take part
84in whatever is being done. Response "x" means "exit";
85the mt\b\b__ command terminates immediately. In the x\b_ function,
86files previously asked about
87have been extracted already.
88With r\b_, no change has been made to the tape.
89
90.ti -3
91m make (create) directories during an x\b_ if necessary.
92.in -6
93.sp
94.ti 0
95FILES /dev/mt?
96.sp
97.ti 0
98SEE ALSO tap(I), tap(V)
99.sp
100.ti 0
101DIAGNOSTICS Tape open error
102.br
103Tape read error
104.br
105Tape write error
106.br
107Directory checksum
108.br
109Directory overflow
110.br
111Seek error
112.br
113Tape overflow
114.br
115Phase error (a file has changed after it was selected for
116dumping but before it was dumped)
117.br
118.sp
119.ti 0
120BUGS If, during an "x",
121the files are specified in a different order
122than they are on the tape,
123seek errors will result because the tape
124cannot be rewound.