1AMFLUSH(8)              System Administration Commands              AMFLUSH(8)
2
3
4

NAME

6       amflush - flush Amanda backup files from holding disk to tape
7

SYNOPSIS

9       amflush [-b] [-f] [-s] [-D datestamp] config [host [disk...]...]
10               [{-o configoption}...]
11

DESCRIPTION

13       Amflush writes Amanda backups from the holding disks to tape, and
14       updates the Amanda info database and tapelist(5) accordingly. Backups
15       may stay in a holding disk when something is wrong with the tape at the
16       time amdump is run. When this happens, the problem must be corrected
17       and amflush run by hand.
18

OPTIONS

20       -b
21           Run amflush in batch mode. All datestamps are selected unless
22           specified. The flush is started without confirmation.
23
24       -f
25           Run amflush in foreground.  Amflush normally detaches itself from
26           the tty and runs as a background process. With the -f option,
27           amflush stays in the foreground. This is useful if amflush is run
28           as part of another script that, for example, advances the tape
29           after the flush is completed.
30
31       -s
32           Write log to stdout/stderr instead of the amflush log file.
33           Requires the -f option.
34
35       -D datestamp
36           specify a datestamp expression you want to flush, see the
37           "DATESTAMP EXPRESSION" section of amanda(8) for a description.  -D
38           20001225-7 will flush all dumps from 25 december 2000 to 27
39           december 2000.
40
41       host [disk]*
42           Specify the host and disk on which the command will work.
43
44       -o configoption
45           See the "CONFIGURATION OVERRIDE" section in amanda(8).
46
47       You can specify many host/disk expressions, only disks that match an
48       expression will be flushed. All disks are flushed if no expressions are
49       given. see the "HOST & DISK EXPRESSION" section of amanda(8) for a
50       description.
51
52       Amflush will look in the holding disks specified by the amanda.conf
53       file in /usr/local/etc/amanda/config for any non-empty Amanda work
54       directories. It then prompts you to select a directory or to process
55       all of the directories. The work directories in the holding disks are
56       named by the date at the time amdump was run, e.g.  19910215.
57
58       See the amanda(8) man page for more details about Amanda.
59

EXAMPLE

61       Amflush will search for holding areas associated with the daily
62       configuration. After you select which holding area to flush, amflush
63       writes the data to tape, updates the databases and sends a mail report
64       similar to amdump(8).
65       % amflush MyConfig
66       Scanning /amanda-hold...
67         20001113: found Amanda directory.
68         20001114: found Amanda directory.
69
70       Multiple Amanda directories, please pick one by letter:
71         A. 20001113
72         B. 20001114
73       Select directories to flush [A..B]: [ALL] all
74
75       Flushing dumps in 20001113, 20001114,
76       today: 20001117
77       to tape drive /dev/rmt/0mn.
78       Expecting tape DMP014 or a new tape.  (The last dumps were to tape DMP013)
79       Are you sure you want to do this? yes
80       Running in background, you can log off now.
81       You´ll get mail when amflush is finished.
82
83       The following example causes amflush to flush everything to tape, then
84       ejects tape, using ´at´ to run the task in the background.
85       % echo ´amflush -b -f MyConfig && mt offline´ | at now
86

EXIT CODE

88       The exit code of amflush is the ORed value of:
89        0  = success
90        1  = error
91        4  = a dle failed
92        8  = Don´t know the status of a dle (RESULT_MISSING in the report)
93        16 = tape error or no more tape
94

SEE ALSO

96       amanda(8), amdump(8)
97
98       The Amanda Wiki: : http://wiki.zmanda.com/
99

AUTHORS

101       James da Silva <jds@amanda.org>
102
103       Stefan G. Weichinger <sgw@amanda.org>
104
105
106
107Amanda 3.1.3                      10/04/2010                        AMFLUSH(8)
Impressum