d37950500174762ca138b09d3daf00f8b26d79ad
[debian/amanda] / man / amflush.8
1 .\"Generated by db2man.xsl. Don't modify this, modify the source.
2 .de Sh \" Subsection
3 .br
4 .if t .Sp
5 .ne 5
6 .PP
7 \fB\\$1\fR
8 .PP
9 ..
10 .de Sp \" Vertical space (when we can't use .PP)
11 .if t .sp .5v
12 .if n .sp
13 ..
14 .de Ip \" List item
15 .br
16 .ie \\n(.$>=3 .ne \\$3
17 .el .ne 3
18 .IP "\\$1" \\$2
19 ..
20 .TH "AMFLUSH" 8 "" "" ""
21 .SH "NAME"
22 amflush - flush Amanda backup files from holding disk to tape
23 .SH "SYNOPSIS"
24 .HP 8
25 \fBamflush\fR [-b] [-f] [-s] [-D \fIdatestamp\fR...] \fIconfig\fR [\fIhost\fR [\fIdisk\fR...]...]
26 .SH "DESCRIPTION"
27 .PP
28 \fBAmflush\fR
29 writes
30 \fBAmanda\fR
31 backups from the holding disks to tape, and updates the
32 \fBAmanda\fR
33 info database and tapelist accordingly. Backups may stay in a holding disk when something is wrong with the tape at the time
34 \fBamdump\fR
35 is run. When this happens, the problem must be corrected and
36 \fBamflush\fR
37 run by hand.
38 .SH "OPTIONS"
39 .TP
40 \fB-b\fR
41 Run
42 \fBamflush\fR
43 in batch mode. All datestamps are selected unless specified. The flush is started without confirmation.
44 .TP
45 \fB-f\fR
46 Run
47 \fBamflush\fR
48 in foreground.
49 \fBAmflush\fR
50 normally detaches itself from the tty and runs as a background process. With the
51 \fB-f\fR
52 option,
53 \fBamflush\fR
54 stays in the foreground. This is useful if
55 \fBamflush\fR
56 is run as part of another script that, for example, advances the tape after the flush is completed.
57 .TP
58 \fB-s\fR
59 Write log to stdout/stderr instead of the amflush log file. Requires the
60 \fB-f\fR
61 option.
62 .TP
63 \fB-D datestamp\fR
64 specify a datestamp expression you want to flush, see the "DATESTAMP EXPRESSION" section of
65 \fBamanda\fR(8)
66 for a description.
67 \fB-D 20001225-7\fR
68 will flush all dumps from 25 december 2000 to 27 december 2000.
69 .PP
70 You can specify many host/disk expressions, only disks that match an expression will be flushed. All disks are flushed if no expressions are given. see the "HOST & DISK EXPRESSION" section of
71 \fBamanda\fR(8)
72 for a description.
73 .PP
74 \fBAmflush\fR
75 will look in the holding disks specified by the
76 \fBamanda.conf\fR
77 file in /usr/local/etc/amanda/\fBconfig\fR
78 for any non-empty
79 \fBAmanda\fR
80 work directories. It then prompts you to select a directory or to process all of the directories. The work directories in the holding disks are named by the date at the time
81 \fBamdump\fR
82 was run, e.g.
83 19910215.
84 .PP
85 See the
86 \fBamanda\fR(8)
87 man page for more details about
88 \fBAmanda\fR.
89 .SH "EXAMPLE"
90 .PP
91 \fBAmflush\fR
92 will search for holding areas associated with the
93 \fBdaily\fR
94 configuration. After you select which holding area to flush,
95 \fBamflush\fR
96 writes the data to tape, updates the databases and sends a mail report similar to
97 \fBamdump\fR(8).
98 .nf
99
100 % amflush daily
101 Scanning /amanda-hold...
102   20001113: found \fBAmanda\fR directory.
103   20001114: found \fBAmanda\fR directory.
104
105 Multiple \fBAmanda\fR directories, please pick one by letter:
106   A. 20001113
107   B. 20001114
108 Select directories to flush [A..B]: [ALL] all
109
110 Flushing dumps in 20001113, 20001114,
111 today: 20001117
112 to tape drive /dev/rmt/0mn.
113 Expecting tape DMP014 or a new tape.  (The last dumps were to tape DMP013)
114 Are you sure you want to do this? yes
115 Running in background, you can log off now.
116 You'll get mail when amflush is finished.
117 .fi
118 .SH "AUTHOR"
119 .PP
120 James da Silva,
121 <jds@amanda.org>
122 : Original text
123 .PP
124 Stefan G. Weichinger,
125 <sgw@amanda.org>, maintainer of the
126 \fBAmanda\fR-documentation: XML-conversion
127 .SH "SEE ALSO"
128 .PP
129 \fBamanda\fR(8),
130 \fBamdump\fR(8)
131