1 .\" Copyright (c) 1980, 1991, 1993
2 .\" Regents of the University of California.
3 .\" All rights reserved.
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\" notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\" notice, this list of conditions and the following disclaimer in the
12 .\" documentation and/or other materials provided with the distribution.
13 .\" 3. All advertising materials mentioning features or use of this software
14 .\" must display the following acknowledgement:
15 .\" This product includes software developed by the University of
16 .\" California, Berkeley and its contributors.
17 .\" 4. Neither the name of the University nor the names of its contributors
18 .\" may be used to endorse or promote products derived from this software
19 .\" without specific prior written permission.
21 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 .\" @(#)dump.8 8.3 (Berkeley) 5/1/95
68 option syntax is implemented for backward compatibility, but
69 is not documented here.)
74 and determines which files
75 need to be backed up. These files
76 are copied to the given disk, tape or other
77 storage medium for safe keeping (see the
79 option below for doing remote backups).
80 A dump that is larger than the output medium is broken into
82 On most media the size is determined by writing until an
83 end-of-media indication is returned.
84 On media that cannot reliably return an end-of-media indication
85 (such as some cartridge tape drives)
86 each volume is of a fixed size;
87 the actual size is determined by the tape size and density and/or
88 block count options below.
89 By default, the same output file name is used for each volume
90 after prompting the operator to change media.
92 The following options are supported by
97 A level 0, full backup,
98 guarantees the entire file system is copied
102 A level number above 0,
105 copy all files new or modified since the
106 last dump of the same or lower level.
107 The default level is 9.
109 The number of dump records per volume.
110 This option overrides the calculation of tape size
111 based on length and density.
112 .It Fl b Ar blocksize
113 The number of kilobytes per dump record.
115 Modify the calculation of the default density and tape size to be more
116 appropriate for cartridge tapes.
120 The default is 1600BPI.
125 may be a special device file
134 (the standard output).
135 Multiple file names may be given as a single argument separated by commas.
136 Each file will be used for one dump volume in the order listed;
137 if the dump requires more volumes than the number of names given,
138 the last file name will used for all remaining volumes after prompting
140 If the name of the file is of the form
145 writes to the named file on the remote host using
152 only for dumps at or above the given
154 The default honor level is 1,
155 so that incremental backups omit such files
156 but full backups retain them.
160 requires operator attention,
161 notify all operators in the group
163 by means similar to a
166 Attempt to calculate the amount of tape needed
167 at a particular density.
168 If this amount is exceeded,
170 prompts for a new tape.
171 It is recommended to be a bit conservative on this option.
172 The default tape length is 2300 feet.
175 Use the specified date as the starting time for the dump
176 instead of the time determined from looking in
178 The format of date is the same as that of
180 This option is useful for automated dump scripts that wish to
181 dump over a specific period of time.
184 option is mutually exclusive from the
190 after a successful dump.
193 is readable by people, consisting of one
194 free format record per line:
200 There may be only one entry per filesystem at each level.
203 may be edited to change any of the fields,
207 tells the operator what file systems need to be dumped.
208 This information is gleaned from the files
216 to print out, for each file system in
218 the most recent dump date and level,
219 and highlights those file systems that should be dumped.
222 option is set, all other options are ignored, and
226 Is like W, but prints only those filesystems which need to be dumped.
230 requires operator intervention on these conditions:
235 disk read error (if there are more than a threshold of 32).
236 In addition to alerting all operators implied by the
240 interacts with the operator on
242 control terminal at times when
244 can no longer proceed,
245 or if something is grossly wrong.
250 be answered by typing
256 Since making a dump involves a lot of time and effort for full dumps,
258 checkpoints itself at the start of each tape volume.
259 If writing that volume fails for some reason,
262 with operator permission,
263 restart itself from the checkpoint
264 after the old tape has been rewound and removed,
265 and a new tape has been mounted.
268 tells the operator what is going on at periodic intervals,
269 including usually low estimates of the number of blocks to write,
270 the number of tapes it will take, the time to completion, and
271 the time to the tape change.
272 The output is verbose,
273 so that others know that the terminal
277 and will be for some time.
279 In the event of a catastrophic disk event, the time required
280 to restore all the necessary backup tapes or files to disk
281 can be kept to a minimum by staggering the incremental dumps.
282 An efficient method of staggering incremental dumps
283 to minimize the number of tapes follows:
284 .Bl -bullet -offset indent
286 Always start with a level 0 backup, for example:
287 .Bd -literal -offset indent
288 /sbin/dump -0u -f /dev/nrst1 /usr/src
291 This should be done at set intervals, say once a month or once every two months,
292 and on a set of fresh tapes that is saved forever.
294 After a level 0, dumps of active file
295 systems are taken on a daily basis,
296 using a modified Tower of Hanoi algorithm,
297 with this sequence of dump levels:
298 .Bd -literal -offset indent
299 3 2 5 4 7 6 9 8 9 9 ...
302 For the daily dumps, it should be possible to use a fixed number of tapes
303 for each day, used on a weekly basis.
304 Each week, a level 1 dump is taken, and
305 the daily Hanoi sequence repeats beginning with 3.
306 For weekly dumps, another fixed set of tapes per dumped file system is
307 used, also on a cyclical basis.
310 After several months or so, the daily and weekly tapes should get
311 rotated out of the dump cycle and fresh tapes brought in.
313 .Bl -tag -width /etc/dumpdates -compact
315 default tape unit to dump to
316 .It Pa /etc/dumpdates
319 dump table: file systems and frequency
332 Dump exits with zero status on success.
333 Startup errors are indicated with an exit code of 1;
334 abnormal termination is indicated with an exit code of 3.
336 Fewer than 32 read errors on the filesystem are ignored.
338 Each reel requires a new process, so parent processes for
339 reels already written just hang around until the entire tape
347 options does not report filesystems that have never been recorded
355 knew about the dump sequence,
356 kept track of the tapes scribbled on,
357 told the operator which tape to mount when,
358 and provided more assistance
359 for the operator running
364 command appeared in Version 6 AT&T UNIX.