1AMFLUSH(8) System Administration Commands AMFLUSH(8)
2
3
4
6 amflush - flush Amanda backup files from holding disk to tape
7
9 amflush [-b] [-f] [--exact-match] [-s] [-D datestamp]
10 [-o configoption...] config [host [disk...]...]
11
13 Amflush writes Amanda backups from the holding disks to tape, and
14 updates the Amanda info database and tapelist(5) accordingly. It is
15 similar to amdump, but does not perform any backup operations on Amanda
16 clients. Backups may stay in a holding disk when something is wrong
17 with the tape at the time amdump is run. When this happens, the problem
18 must be corrected and amflush run by hand.
19
20 The command optionally takes a set of DLE specifications (see amanda-
21 match(7)) to narrow the DLEs for which dumps will be flushed. All dumps
22 in holding are flushed if no expressions are given.
23
25 -b
26 Run amflush in batch mode. All datestamps are selected unless
27 specified. The flush is started without confirmation.
28
29 -f
30 Run amflush in foreground. Amflush normally detaches itself from
31 the tty and runs as a background process. With the -f option,
32 amflush stays in the foreground. This is useful if amflush is run
33 as part of another script that, for example, advances the tape
34 after the flush is completed.
35
36 -s
37 Write log to stdout/stderr instead of the amflush log file.
38 Requires the -f option.
39
40 -D datestamp
41 specify a datestamp expression you want to flush; see amanda-
42 match(7) for details on the format of this expression. -D
43 20001225-7 will flush all dumps from 25 december 2000 to 27
44 december 2000.
45
46 --exact-match
47 The host and disk are parsed as exact values
48
49 host [disk]*
50 Specify the host and disk on which the command will work -- see the
51 description of DLE specifications in amanda-match(7).
52
53 -o configoption
54 See the "CONFIGURATION OVERRIDE" section in amanda(8).
55
56 You can specify many host/disk expressions, only disks that match an
57 expression will be flushed. All disks are flushed if no expressions are
58 given. see the "HOST & DISK EXPRESSION" section of amanda(8) for a
59 description.
60
61 Amflush will look in the holding disks specified by the amanda.conf
62 file in /usr/local/etc/amanda/config for any non-empty Amanda work
63 directories. It then prompts you to select a directory or to process
64 all of the directories. The work directories in the holding disks are
65 named by the date at the time amdump was run, e.g. 19910215.
66
67 See the amanda(8) man page for more details about Amanda.
68
70 Amflush will search for holding areas associated with the daily
71 configuration. After you select which holding area to flush, amflush
72 writes the data to tape, updates the databases and sends a mail report
73 similar to amdump(8).
74 % amflush MyConfig
75 Scanning /amanda-hold...
76 20001113: found Amanda directory.
77 20001114: found Amanda directory.
78
79 Multiple Amanda directories, please pick one by letter:
80 A. 20001113
81 B. 20001114
82 Select directories to flush [A..B]: [ALL] all
83
84 Flushing dumps in 20001113, 20001114,
85 today: 20001117
86 to tape drive /dev/rmt/0mn.
87 Expecting tape DMP014 or a new tape. (The last dumps were to tape DMP013)
88 Are you sure you want to do this? yes
89 Running in background, you can log off now.
90 You'll get mail when amflush is finished.
91
92 The following example causes amflush to flush everything to tape, then
93 ejects tape, using 'at' to run the task in the background.
94 % echo 'amflush -b -f MyConfig && mt offline' | at now
95
97 The exit code of amflush is the ORed value of:
98 0 = success
99 1 = error
100 4 = a dle failed
101 8 = Don't know the status of a dle (RESULT_MISSING in the report)
102 16 = tape error or no more tape
103
105 amanda(8), amdump(8), amanda-match(7)
106
107 The Amanda Wiki: : http://wiki.zmanda.com/
108
110 James da Silva <jds@amanda.org>
111
112 Stefan G. Weichinger <sgw@amanda.org>
113
114
115
116Amanda 3.5.1 12/01/2017 AMFLUSH(8)