Imported Upstream version 2.4.4p3
[debian/amanda] / man / amflush.8.in
1 .\"
2 .de EX
3 .if t .ft C
4 .nf
5 ..
6 .de EE
7 .fi
8 .if t .ft
9 ..
10 .TH AMFLUSH 8
11 .SH NAME
12 amflush \- flush Amanda backup files from holding disk to tape
13 .SH SYNOPSIS
14 .B amflush
15 [
16 .B -b
17 ] [
18 .B -f
19 ] [
20 .B -s
21 ] [
22 .B -D
23 .I datestamp
24 ]*
25 .I config
26 [
27 .I host
28 [
29 .I disk
30 ]*
31 ]*
32 .SH DESCRIPTION
33 .B Amflush
34 writes Amanda backups from the holding disks to tape,
35 and updates the Amanda info database and tape list accordingly.
36 Backups may stay in a holding disk when something is wrong with the tape
37 at the time
38 .B amdump
39 is run.
40 When this happens, the problem must be corrected and
41 .B amflush
42 run by hand.
43 .SH OPTIONS
44 .TP
45 .B \-b
46 Run
47 .B amflush
48 in batch mode. All datestamp are selected unless specified.
49 The flush is started without confirmation.
50 .TP
51 .B \-f
52 Run
53 .B amflush
54 in foreground.
55 .B Amflush
56 normally detaches itself from the tty and runs as a background process.
57 With the
58 .B -f
59 option,
60 .B amflush
61 stays in the foreground.
62 This is useful if
63 .B amflush
64 is run as part of another script that, for example, advances the tape
65 after the flush is completed.
66 .TP
67 .B \-s
68 Write log to stdout/stderr instead of the amflush log file. Require the
69 .B \-f
70 option.
71 .TP
72 .B \-D datestamp
73 specify a  datestamp expression you want to flush, see the 
74 "DATASTAMP EXPRESSION" section of
75 .IR amanda (8)
76 for a description.
77 .B -D 20001225-7
78 will flush all
79 dump from 25 december 2000 to 27 december 2000.
80 .LP
81 You can specify many host/disk expressions, only disks that
82 match an expression will be flushed. All disk are flushed if no
83 expression are given. see the "HOST & DISK EXPRESSION" section of
84 .IR amanda (8)
85 for a description.
86 .PP
87 .B Amflush
88 will look in the holding disks specified by the
89 .I amanda.conf
90 file in @CONFIG_DIR@/\fIconfig\fR
91 for any non-empty Amanda work directories.
92 It then prompts you to select a directory
93 or to process all of the directories.
94 The work directories in the holding disks are named by the date at the time
95 .B amdump
96 was run, e.g.\&
97 .IR 19910215 .
98 .PP
99 .LP
100 See the
101 .IR amanda (8)
102 man page for more details about Amanda.
103 .SH EXAMPLE
104 .B Amflush
105 will search for holding areas associated with the
106 .I PUCC
107 configuration.
108 After you select which holding area to flush,
109 .B amflush
110 writes the data to tape, updates the databases and sends
111 a mail report similar to
112 .IR amdump (8).
113 .LP
114 .RS
115 .EX
116 % amflush @DEFAULT_CONFIG@
117 Scanning /amanda-hold...
118   20001113: found Amanda directory.
119   20001114: found Amanda directory.
120
121 Multiple Amanda directories, please pick one by letter:
122   A. 20001113
123   B. 20001114
124 Select directories to flush [A..B]: [ALL] all
125
126 Flushing dumps in 20001113, 20001114,
127 today: 20001117
128 to tape drive /dev/rmt/0mn.
129 Expecting tape DMP014 or a new tape.  (The last dumps were to tape DMP013)
130 Are you sure you want to do this? yes
131 Running in background, you can log off now.
132 You'll get mail when amflush is finished.
133 .EE
134 .RE
135 .SH AUTHOR
136 James da Silva <jds@cs.umd.edu>
137 .br
138 University of Maryland, College Park
139 .SH "SEE ALSO"
140 amanda(8),
141 amdump(8)