BSD 4_3 development
[unix-history] / usr / contrib / ansi / ansitape.n
CommitLineData
6de9a741
C
1.TH ANSITAPE LOCAL "4/10/85 UCB Local"
2.SH NAME
3ansitape - ANSI standard tape handler
4.SH SYNOPSIS
5.B ansitape
6[key] [keyargs] [files]
7.SH DESCRIPTION
8.I Ansitape
9reads and writes magnetic tapes written in
10ANSI standard format
11(called ``Files-11'' by DEC).
12Tapes written by
13.I ansitape
14are labeled with the first 6 characters of the machine name by default.
15Actions are controlled by the
16.I key
17argument.
18The
19.I key
20is a string of characters containing at
21most one function letter.
22Other arguments to the command are
23a tape label and file names specifying which files are
24to be written onto or extracted from the tape.
25.PP
26The function portion of the key is
27specified by one of the following letters:
28.TP 8
29.B r
30The named files are written at the end of the tape.
31The
32.B c
33function implies this.
34.TP 8
35.B x
36The named files are extracted from the tape.
37If no file argument is given,
38the entire contents of the tape is extracted.
39Note that if the tape has duplicated file names,
40only the last file of a given name can
41be extracted.
42.TP 8
43.B t
44The names of the specified files are listed
45each time they occur on the tape.
46If no file argument is given,
47all files on the tape are listed.
48.TP 8
49.B c
50Create a new tape; writing begins at the
51beginning of the tape instead of after
52the last file.
53This command implies
54.B r.
55.PP
56The following characters may be used in
57addition to the letter which selects
58the function desired.
59.TP 8
60.B f
61This argument allows the selection of a different tape
62device.
63The next word in the keyargs list is taken to be
64the full name of a device to write the tape on.
65The default is /dev/rmt12.
66.TP 8
67.B n
68The
69.B n
70option allows the user to specify as the next argument in the keyargs list,
71a control file
72containing the names of files to put on the tape.
73If the file name is '-', the control file will, instead, be read
74from standard input.
75The control file contains one line for each file
76to be placed on the tape.
77Each line has two names, the name of the file on
78the local machine, and the name it is to have when
79placed on the tape. This allows for more convenient
80flattening of hierarchies when placing them on tape.
81If the second name is omitted, the UNIX file name will be
82used on the tape also.
83This argument can only be used with the
84.B r
85and
86.B c
87functions.
88.TP 8
89.B l
90The
91.B l
92option allows the user to specify the label to be placed on the tape.
93The next argument in the keyargs list is taken as the tape label, which
94will be space padded or truncated to six characters.
95This option is meaningless unless
96.B c
97is also specified.
98.TP 8
99.B v
100Normally
101.I ansitape
102works relatively silently.
103The
104.B v
105(verbose) option causes it to type
106information about each file as it processes it.
107.TP 8
108.B b
109The
110.B b
111option allows the user to select the blocksize to be used for the
112tape.
113By default,
114.I ansitape
115uses the maximum block size permitted by the ANSI standard, 2048.
116Some systems will permit a much large block size, and if large
117files are being put on the tape it may be advantageous to do so.
118.I Ansitape
119will take the next argument of the keyargs list as the blocksize for the tape.
120Values below 18 or above 32k will be limited to that range.
121The standard scale factors b=512 and k=1024 are accepted.
122.PP
123.I Ansitape
124will not copy directories, character or block special files,
125symbolic links, sockets, or binary executables.
126Attempts to put these on tape will result in warnings, and they will
127be skipped completely.
128.SH FILES
129/dev/rmt12
130.br
131.SH DIAGNOSTICS
132A warning message will be generated when a record exceeds the maximum record
133length and the affected file will be truncated.
134.br
135.SH BUGS
136Ansitape quietly truncates names longer than 17 characters.
137.br
138ANSI 'f' format files can be read but not written.
139.br
140Multivolume tapes can not be handled.
141.br