View | Details | Raw Unified | Return to bug 234315
Collapse All | Expand All

(-)dump.8 (-1 / +4 lines)
Lines 38-44 Link Here
38
.Nd file system backup
38
.Nd file system backup
39
.Sh SYNOPSIS
39
.Sh SYNOPSIS
40
.Nm
40
.Nm
41
.Op Fl 0123456789acLnrRSu
41
.Op Fl 0123456789acLnrRSuy
42
.Op Fl B Ar records
42
.Op Fl B Ar records
43
.Op Fl b Ar blocksize
43
.Op Fl b Ar blocksize
44
.Op Fl C Ar cachesize
44
.Op Fl C Ar cachesize
Lines 210-215 Link Here
210
Subject to the media size specified by
210
Subject to the media size specified by
211
.Fl B ,
211
.Fl B ,
212
each volume is written in this manner as if the output were a tape drive.
212
each volume is written in this manner as if the output were a tape drive.
213
.It Fl y
214
Do not wait for confirmation after each volume.
215
This is useful for automated scripts without human intervention.
213
.It Fl h Ar level
216
.It Fl h Ar level
214
Honor the user
217
Honor the user
215
.Dq nodump
218
.Dq nodump
(-)dump.h (+1 lines)
Lines 80-85 Link Here
80
int	rsync_friendly;	/* be friendly with rsync */
80
int	rsync_friendly;	/* be friendly with rsync */
81
81
82
int	notify;		/* notify operator flag */
82
int	notify;		/* notify operator flag */
83
int	skip_vol_query;	/* skip operator query on volume change */
83
int	blockswritten;	/* number of blocks written on current tape */
84
int	blockswritten;	/* number of blocks written on current tape */
84
int	tapeno;		/* current tape number */
85
int	tapeno;		/* current tape number */
85
time_t	tstart_writing;	/* when started writing the first tape block */
86
time_t	tstart_writing;	/* when started writing the first tape block */
(-)main.c (-2 / +7 lines)
Lines 74-79 Link Here
74
#include "pathnames.h"
74
#include "pathnames.h"
75
75
76
int	notify = 0;	/* notify operator flag */
76
int	notify = 0;	/* notify operator flag */
77
int	skip_vol_query = 0;	/* skip operator query on volume change */
77
int	snapdump = 0;	/* dumping live filesystem, so use snapshot */
78
int	snapdump = 0;	/* dumping live filesystem, so use snapshot */
78
int	blockswritten = 0;	/* number of blocks written on current tape */
79
int	blockswritten = 0;	/* number of blocks written on current tape */
79
int	tapeno = 0;	/* current tape number */
80
int	tapeno = 0;	/* current tape number */
Lines 122-128 Link Here
122
123
123
	obsolete(&argc, &argv);
124
	obsolete(&argc, &argv);
124
	while ((ch = getopt(argc, argv,
125
	while ((ch = getopt(argc, argv,
125
	    "0123456789aB:b:C:cD:d:f:h:LnP:RrSs:T:uWw")) != -1)
126
	    "0123456789aB:b:C:cD:d:f:h:LnP:RrSs:T:uWwy")) != -1)
126
		switch (ch) {
127
		switch (ch) {
127
		/* dump level */
128
		/* dump level */
128
		case '0': case '1': case '2': case '3': case '4':
129
		case '0': case '1': case '2': case '3': case '4':
Lines 221-226 Link Here
221
			uflag = 1;
222
			uflag = 1;
222
			break;
223
			break;
223
224
225
		case 'y':
226
			skip_vol_query = 1;
227
			break;
228
224
		case 'W':		/* what to do */
229
		case 'W':		/* what to do */
225
		case 'w':
230
		case 'w':
226
			lastdump(ch);
231
			lastdump(ch);
Lines 606-612 Link Here
606
usage(void)
611
usage(void)
607
{
612
{
608
	fprintf(stderr,
613
	fprintf(stderr,
609
		"usage: dump [-0123456789acLnSu] [-B records] [-b blocksize] [-C cachesize]\n"
614
		"usage: dump [-0123456789acLnSuy] [-B records] [-b blocksize] [-C cachesize]\n"
610
		"            [-D dumpdates] [-d density] [-f file | -P pipecommand] [-h level]\n"
615
		"            [-D dumpdates] [-d density] [-f file | -P pipecommand] [-h level]\n"
611
		"            [-s feet] [-T date] filesystem\n"
616
		"            [-s feet] [-T date] filesystem\n"
612
		"       dump -W | -w\n");
617
		"       dump -W | -w\n");
(-)tape.c (-1 / +1 lines)
Lines 380-386 Link Here
380
		msg("Change Volumes: Mount volume #%d\n", tapeno+1);
380
		msg("Change Volumes: Mount volume #%d\n", tapeno+1);
381
		broadcast("CHANGE DUMP VOLUMES!\a\a\n");
381
		broadcast("CHANGE DUMP VOLUMES!\a\a\n");
382
	}
382
	}
383
	while (!query("Is the new volume mounted and ready to go?"))
383
	while (!skip_vol_query && !query("Is the new volume mounted and ready to go?"))
384
		if (query("Do you want to abort?")) {
384
		if (query("Do you want to abort?")) {
385
			dumpabort(0);
385
			dumpabort(0);
386
			/*NOTREACHED*/
386
			/*NOTREACHED*/

Return to bug 234315