put back that newline!
[unix-history] / usr / src / sbin / dump / dump.8
CommitLineData
89f26d46
KM
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.\"
b3dfcea8 5.\" @(#)dump.8 6.2 (Berkeley) %G%
89f26d46 6.\"
6815f702 7.TH DUMP 8 ""
89f26d46
KM
8.UC 4
9.SH NAME
10dump \- incremental file system dump
11.SH SYNOPSIS
12.B /etc/dump
13[ key [
14.I argument
15\&... ] filesystem ]
16.SH DESCRIPTION
17.I Dump
18copies to magnetic tape all files
19changed after a certain date
20in the
21.I filesystem.
22The
23.I key
24specifies the date and other options about the dump.
25.I Key
26consists of characters from
27the set
8627a26c 28.B 0123456789fusdWn.
89f26d46
KM
29.TP 5
30.B 0\-9
31This number is the `dump level'.
32All files modified since the last date stored
33in the file
34.I /etc/dumpdates
35for the same filesystem at lesser levels
36will be dumped.
37If no date is determined by the level,
38the beginning of time is assumed;
39thus the option
40.B 0
41causes the entire filesystem to be dumped.
42.TP 5
43.B f
44Place the dump on the next
45.I argument
46file
47instead of the tape.
8627a26c
KM
48If the name of the file is ``\-'',
49.I dump
50writes to standard output.
89f26d46
KM
51.TP 5
52.B u
53If the dump completes successfully,
54write the date of the beginning of the dump on
55file
56.I /etc/dumpdates.
57This file records a separate date for
58each filesystem and each dump level.
59The format of
60.I /etc/dumpdates
61is readable by people, consisting of one
62free format record per line:
63filesystem name, increment level
64and
65.I ctime(3)
66format dump date.
67.I /etc/dumpdates
68may be edited to change any of the fields,
69if necessary.
89f26d46
KM
70.TP 5
71.B s
72The size of the dump tape is specified in feet.
73The number of feet is taken from the next
74.I argument.
75When the specified size is reached,
76.I dump
77will wait for reels to be changed.
78The default tape size is 2300 feet.
79.TP 5
80.B d
81The density of the tape, expressed in BPI,
82is taken from the next
83.I argument.
84This is used in calculating the amount of tape
85used per reel. The default is 1600.
86.TP 5
87.B W
88.I Dump
89tells the operator what file systems need to be dumped.
90This information is gleaned from the files
91.I /etc/dumpdates
92and
93.I /etc/fstab.
94The
95.B W
96option causes
97.I dump
98to print out, for each file system in
99.I /etc/dumpdates
100the most recent dump date and level,
101and highlights those file systems that should be dumped.
102If the
103.B W
104option is set, all other options are ignored, and
105.I dump
106exits immediately.
107.TP 5
108.B w
109Is like W, but prints only those filesystems which need to be dumped.
110.TP 5
111.B n
112Whenever
113.I dump
114requires operator attention,
115notify by means similar to a
8627a26c 116.IR wall (1)
89f26d46
KM
117all of the operators in the group \*(lqoperator\*(rq.
118.PP
119If no arguments are given,
120the
121.I key
122is assumed to be
123.B 9u
124and a default file system is dumped
125to the default tape.
126.PP
127.I Dump
128requires operator intervention on these conditions:
129end of tape,
130end of dump,
131tape write error,
132tape open error or
133disk read error (if there are more than a threshold of 32).
134In addition to alerting all operators implied by the
135.B n
136key,
137.I dump
138interacts with the operator on
139.I dump's
140control terminal at times when
141.I dump
142can no longer proceed,
143or if something is grossly wrong.
144All questions
145.I dump
146poses
147.B must
148be answered by typing \*(lqyes\*(rq or \*(lqno\*(rq,
149appropriately.
150.PP
151Since making a dump involves a lot of time and effort for full dumps,
152.I dump
153checkpoints itself at the start of each tape volume.
154If writing that volume fails for some reason,
155.I dump
156will,
157with operator permission,
158restart itself from the checkpoint
159after the old tape has been rewound and removed,
160and a new tape has been mounted.
161.PP
162.I Dump
163tells the operator what is going on at periodic intervals,
164including usually low estimates of the number of blocks to write,
165the number of tapes it will take, the time to completion, and
166the time to the tape change.
167The output is verbose,
168so that others know that the terminal
169controlling
170.I dump
171is busy,
172and will be for some time.
173.PP
174Now a short suggestion on how to
175perform dumps.
176Start with a full level 0 dump
177.PP
178 dump 0un
179.PP
180Next, dumps of active file
181systems are taken on a daily basis,
182using a modified Tower of Hanoi algorithm,
183with this sequence of dump levels:
184.ce 1
1853 2 5 4 7 6 9 8 9 9 ...
186For the daily dumps, a set of 10 tapes per dumped file system
187is used on a cyclical basis.
188Each week, a level 1 dump is taken, and
189the daily Hanoi sequence repeats with 3.
190For weekly dumps, a set of 5 tapes per dumped file system is
191used, also on a cyclical basis.
192Each month, a level 0 dump is taken
193on a set of fresh tapes that is saved forever.
194.SH FILES
195.nf
196.ta \w'/etc/dumpdates\ \ 'u
197/dev/rrp1g default filesystem to dump from
198/dev/rmt8 default tape unit to dump to
199/etc/ddate old format dump date record (obsolete after \fB\-J\fR option)
200/etc/dumpdates new format dump date record
8627a26c 201/etc/fstab dump table: file systems and frequency
89f26d46
KM
202/etc/group to find group \fIoperator\fP
203.fi
204.DT
205.br
206.SH "SEE ALSO"
8627a26c
KM
207restore(8),
208dump(5),
209fstab(5)
89f26d46
KM
210.SH DIAGNOSTICS
211Many, and verbose.
212.SH BUGS
213.PP
89f26d46
KM
214Fewer than 32 read errors on the filesystem are ignored.
215Each reel requires a new process, so parent processes for
216reels already written just hang around until the entire tape
217is written.
218.PP
b3dfcea8
MK
219.I Dump
220with the
221.B W
222or
223.B w
224options does not report filesystems that have never been recorded
225in /etc/dumpdates, even if listed in /etc/fstab.
226.PP
89f26d46
KM
227It would be nice if
228.I dump
229knew about the dump sequence,
230kept track of the tapes scribbled on,
231told the operator which tape to mount when,
232and provided more assistance
233for the operator running
8627a26c 234.IR restore .