date and time created 88/07/21 17:35:50 by marc
[unix-history] / usr / src / local / ukc / dump / dump.8
CommitLineData
0e5d3dbd
PC
1.\" Copyright (c) 1980 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
5.\" @(#)dump.8 6.3 (Berkeley) 5/23/86
c67409f7 6.\" @(#)dump.8 1.3 (UKC) %G%
0e5d3dbd 7.\"
a43cd228 8.TH DUMP 8 "UKC altered %G%"
0e5d3dbd
PC
9.UC 4
10.SH NAME
11dump \- incremental file system dump
12.SH SYNOPSIS
13.B /etc/dump
14[ key [
15.I argument
16\&... ] filesystem ]
17.SH DESCRIPTION
18.I Dump
19copies to magnetic tape all files
20changed after a certain date
21in the
22.I filesystem.
23The
24.I key
25specifies the date and other options about the dump.
26.I Key
27consists of characters from
28the set
a43cd228 29.B 0123456789fusdWnolmt.
0e5d3dbd
PC
30.TP 5
31.B 0\-9
32This number is the `dump level'.
33All files modified since the last date stored
34in the file
35.I /etc/dumpdates
36for the same filesystem at lesser levels
37will be dumped.
38If no date is determined by the level,
39the beginning of time is assumed;
40thus the option
41.B 0
42causes the entire filesystem to be dumped.
43.TP 5
44.B f
45Place the dump on the next
46.I argument
47file
48instead of the tape.
49If the name of the file is ``\-'',
50.I dump
51writes to standard output.
52.TP 5
53.B u
54If the dump completes successfully,
55write the date of the beginning of the dump on
56file
57.I /etc/dumpdates.
58This file records a separate date for
59each filesystem and each dump level.
60The format of
61.I /etc/dumpdates
62is readable by people, consisting of one
63free format record per line:
64filesystem name, increment level
65and
66.I ctime(3)
67format dump date.
68.I /etc/dumpdates
69may be edited to change any of the fields,
70if necessary.
71.TP 5
72.B s
73The size of the dump tape is specified in feet.
74The number of feet is taken from the next
75.I argument.
76When the specified size is reached,
77.I dump
78will wait for reels to be changed.
79The default tape size is 2300 feet.
80.TP 5
81.B d
82The density of the tape, expressed in BPI,
83is taken from the next
84.I argument.
85This is used in calculating the amount of tape
86used per reel. The default is 1600.
87.TP 5
88.B W
89.I Dump
90tells the operator what file systems need to be dumped.
91This information is gleaned from the files
92.I /etc/dumpdates
93and
94.I /etc/fstab.
95The
96.B W
97option causes
98.I dump
99to print out, for each file system in
100.I /etc/dumpdates
101the most recent dump date and level,
102and highlights those file systems that should be dumped.
103If the
104.B W
105option is set, all other options are ignored, and
106.I dump
107exits immediately.
108.TP 5
109.B w
110Is like W, but prints only those filesystems which need to be dumped.
111.TP 5
112.B n
113Whenever
114.I dump
115requires operator attention,
116notify by means similar to a
117.IR wall (1)
118all of the operators in the group \*(lqoperator\*(rq.
119.PP
120If no arguments are given,
121the
122.I key
123is assumed to be
124.B 9u
125and a default file system is dumped
126to the default tape.
a43cd228
PC
127.TP 5
128.B o
129This switch causes tapes to be rewound and the tape drive put offline after
130each tape write has been done.
131.TP 5
132.B l
133The next argument in the command list is a tape label.
134The tape label is written into the dump file header at the beginning of each
135tape which the dump uses.
136Labels are currently limited to 15 characters.
137The argument may contain a `%s', which is replaced by the volume number
138in decimal of a multi-volume dump, unless the
139.B m
140argument is given (see below).
141.PP
142If the
143.B u
144flag is set and the output device appears to be a tape drive,
145each tape is logged in
146.IR /etc/dumpvolumes .
147The data written here contains the tape label, the
148name of the file system which has been dumped, the date, the device
149which was dumped, the dump level, the reel of the dump and the inode
150which the dump started from.
151The log is written just prior to the tape being written, this means that
152bad tapes will be logged.
153When a tape is overwritten, its old entry in the log file can be removed
154by the shell script /etc/cleanvolumes.
155.TP 5
156.B m
157The m argument provides a way of mapping the volume numbers of a multi-volume dump
158into a series of strings.
159In the absence of an
160.B l
161argument, these strings become the tape label.
162Otherwise the string is inserted in the tape label by the use of a `%s' marker
163in the label format.
164The argument to the
165.B m
166switch may be a single string or an auto-incrementing range.
167These items may be grouped into a list by using commas to separate
168each item.
169An auto-incrementing range is two equal length strings separated by a minus
170sign.
171The first string is incremented starting at the rightmost character until
172a match with the second string is acheived.
173The increment treats the characters `0' to `9', `a' to `z', and `A' to `Z'
174as separate ranges.
175Examples to legal ranges are: 45-70, giving 45,46,47,48...69,70;
176a00-b99, giving a00,a01,a02...b98,b99; and A0a-A9z, giving A0a,A0b,A0c...A9x,A9y,A9z.
177.PP
178.I Dump
179will complain of the estimated number of tape which a dump will take is less
180than the label range supplied by the user.
181.TP 5
182.B t
183Tests that the tape being currently overwritten contains a header
184bearing the correct label.
185When a fresh tape is loaded, the first block is read and its label checked.
186If the labels do not match, the write is refused on the tape.
187This provides considerable protection and the ability to construct
188tape dump cycles.
189A program
190.IR dumplabel (8)
191may be used to label tapes prior to the use of
192.IR dump .
0e5d3dbd
PC
193.PP
194.I Dump
195requires operator intervention on these conditions:
196end of tape,
197end of dump,
198tape write error,
199tape open error or
200disk read error (if there are more than a threshold of 32).
201In addition to alerting all operators implied by the
202.B n
203key,
204.I dump
205interacts with the operator on
206.I dump's
207control terminal at times when
208.I dump
209can no longer proceed,
210or if something is grossly wrong.
211All questions
212.I dump
213poses
214.B must
215be answered by typing \*(lqyes\*(rq or \*(lqno\*(rq,
216appropriately.
217.PP
218Since making a dump involves a lot of time and effort for full dumps,
219.I dump
220checkpoints itself at the start of each tape volume.
221If writing that volume fails for some reason,
222.I dump
223will,
224with operator permission,
225restart itself from the checkpoint
226after the old tape has been rewound and removed,
227and a new tape has been mounted.
228.PP
229.I Dump
230tells the operator what is going on at periodic intervals,
231including usually low estimates of the number of blocks to write,
232the number of tapes it will take, the time to completion, and
233the time to the tape change.
234The output is verbose,
235so that others know that the terminal
236controlling
237.I dump
238is busy,
239and will be for some time.
240.PP
241Now a short suggestion on how to
242perform dumps.
243Start with a full level 0 dump
244.PP
245 dump 0un
246.PP
247Next, dumps of active file
248systems are taken on a daily basis,
249using a modified Tower of Hanoi algorithm,
250with this sequence of dump levels:
251.ce 1
2523 2 5 4 7 6 9 8 9 9 ...
253For the daily dumps, a set of 10 tapes per dumped file system
254is used on a cyclical basis.
255Each week, a level 1 dump is taken, and
256the daily Hanoi sequence repeats with 3.
257For weekly dumps, a set of 5 tapes per dumped file system is
258used, also on a cyclical basis.
259Each month, a level 0 dump is taken
260on a set of fresh tapes that is saved forever.
261.SH FILES
262.nf
a43cd228 263.ta \w'/etc/dumpvolumes\ \ 'u
0e5d3dbd
PC
264/dev/rrp1g default filesystem to dump from
265/dev/rmt8 default tape unit to dump to
266/etc/dumpdates new format dump date record
a43cd228 267/etc/dumpvolumes Listing of tape labels and the data which the tapes contain
0e5d3dbd
PC
268/etc/fstab dump table: file systems and frequency
269/etc/group to find group \fIoperator\fP
270.fi
271.DT
272.br
273.SH "SEE ALSO"
274restore(8),
a43cd228 275dumplabel(8),
c67409f7 276dumpdev(8),
0e5d3dbd
PC
277dump(5),
278fstab(5)
279.SH DIAGNOSTICS
280Many, and verbose.
281.PP
282Dump exits with zero status on success.
283Startup errors are indicated with an exit code of 1;
284abnormal termination is indicated with an exit code of 3.
285.SH BUGS
286.PP
287Fewer than 32 read errors on the filesystem are ignored.
288Each reel requires a new process, so parent processes for
289reels already written just hang around until the entire tape
290is written.
291.PP
292.I Dump
293with the
294.B W
295or
296.B w
297options does not report filesystems that have never been recorded
298in /etc/dumpdates, even if listed in /etc/fstab.
299.PP
300It would be nice if
301.I dump
302knew about the dump sequence,
303kept track of the tapes scribbled on,
304told the operator which tape to mount when,
305and provided more assistance
306for the operator running
307.IR restore .