Imported Upstream version 2.4.5
[debian/amanda] / man / amadmin.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 "AMADMIN" 8 "" "" ""
21 .SH NAME
22 amadmin \- administrative interface to control AMANDA backups
23 .SH "SYNOPSIS"
24 .ad l
25 .hy 0
26 .HP 8
27 \fBamadmin\fR \fIconfig\fR \fIcommand\fR [\fIcommand\fR\ \fIoptions\fR]
28 .ad
29 .hy
30
31 .SH "DESCRIPTION"
32
33 .PP
34 \fBAmadmin\fR performs various administrative tasks on the \fBconfig\fR  \fBAMANDA\fR configuration\&.
35
36 .PP
37 See the \fBamanda\fR(8) man page for more details about \fBAMANDA\fR\&.
38
39 .SH "COMMANDS"
40
41 .PP
42 Commands that take a \fBhostname\fR [ \fBdisks\fR ] parameter pair operate on all disks in the \fBdisklist\fR for that \fBhostname\fR if no disks are specified\&. Where \fBhostname\fR is also marked as being optional, the command operates on all hosts and disks in the \fBdisklist\fR\&. Both \fBhostname\fR and \fBdisks\fR are special expressions, see the ``\fBHOST & DISK EXPRESSION\fR'' section of \fBamanda\fR(8) for a description\&.
43
44 .TP
45 \fBversion\fR
46 Show the current version and some compile time and runtime parameters\&. The \fBconfig\fR parameter must be present but is ignored\&.
47
48 .TP
49 \fBforce\-bump\fR [ \fBhostname\fR [ \fBdisks\fR ]* ]+
50 Force the \fBdisks\fR on \fBhostname\fR to bump to a new incremental level during the next \fBAMANDA\fR run\&.
51
52 .TP
53 \fBforce\-no\-bump\fR [ \fBhostname\fR [ \fBdisks\fR ]* ]+
54 Force the \fBdisks\fR on \fBhostname\fR to not bump to a new incremental level during the next \fBAMANDA\fR run\&.
55
56 .TP
57 \fBunforce\-bump\fR [ \fBhostname\fR [ \fBdisks\fR ]* ]+
58 Undo a previous \fBforce\-bump\fR or \fBforce\-no\-bump\fR command\&.
59
60 .TP
61 \fBforce\fR [ \fBhostname\fR [ \fBdisks\fR ]* ]+
62 Force the \fBdisks\fR on \fBhostname\fR to do a full (level 0) backup during the next \fBAMANDA\fR run\&.
63
64 .TP
65 \fBunforce\fR [ \fBhostname\fR [ \fBdisks\fR ]* ]+
66 Undo a previous \fBforce\fR command\&.
67
68 .TP
69 \fBreuse\fR \fBtapelabel\fR [ \&.\&.\&. ]
70 The tapes listed will be available for reuse at their point in the tape cycle\&.
71
72 .TP
73 \fBno\-reuse\fR \fBtapelabel\fR [ \&.\&.\&. ]
74 The tapes listed will not be reused when their turn comes up again in the tape cycle\&. Note that if this causes the number of reusable tapes to drop below the \fBamanda\&.conf\fR  \fBtapecycle\fR value, \fBAMANDA\fR will request new tapes until the count is satisfied again\&.
75
76 .TP
77 \fBdue\fR [ \fBhostname\fR [ \fBdisks\fR ]* ]*
78 Show when the next full dump is due\&.
79
80 .TP
81 \fBfind\fR [ \fB\-\-sort\fR \fIhkdlb\fR ]\fB\fR [ \fBhostname\fR [ \fBdisks\fR ]* ]*
82 Display all backups currently on tape or in the holding disk\&. The tape label or holding disk filename, file number, and status are displayed\&.
83
84 The \fB\-\-sort\fR option changes the sort order using the following flags:
85
86 \fBh\fRhost name \fBk\fRdisk name \fBd\fRdump date \fBl\fRbackup level \fBb\fRtape label
87
88 An uppercase letter reverses the sort order for that key\&. The default sort order is \fBhkdlb\fR\&.
89
90 .TP
91 \fBdelete\fR [ \fBhostname\fR [ \fBdisks\fR ]* ]+
92 Delete the specified \fBdisks\fR on \fBhostname\fR from the \fBAMANDA\fR database\&.
93
94 .RS
95 .Sh "Note"
96 If you do not also remove the disk from the
97 \fBdisklist\fR
98 file, \fBAMANDA\fR will treat it as a new disk during the next run\&.
99 .RE
100
101 .TP
102 \fBtape\fR
103 Display the tape(s) \fBAMANDA\fR expects to write to during the next run\&. See also \fBamcheck\fR(8)\&.
104
105 .TP
106 \fBbumpsize\fR
107 Display the current bump threshold parameters, calculated for all backup levels\&.
108
109 .TP
110 \fBbalance\fR [ \fB\-\-days\fR \fI<num>\fR ]\fB\fR \fB\fR \fB\fR
111 Display the distribution of full backups throughout the dump schedule\&.
112
113 .TP
114 \fBexport\fR [ \fBhostname\fR [ \fBdisks\fR ]* ]*
115 Convert records from the \fBAMANDA\fR database to a text format that may be transmitted to another \fBAMANDA\fR machine and \fBimport\fRed\&.
116
117 .TP
118 \fBimport\fR
119 Convert \fBexport\fRed records read from standard input to a form \fBAMANDA\fR uses and insert them into the database on this machine\&.
120
121 .TP
122 \fBdisklist\fR [ \fBhostname\fR [ \fBdisks\fR ]* ]*
123 Display the \fBdisklist\fR information for each of the \fBdisks\fR on \fBhostname\fR (or all hosts)\&. Mostly used for debugging\&.
124
125 .TP
126 \fBinfo\fR [ \fBhostname\fR [ \fBdisks\fR ]* ]*
127 Display the database record for each of the \fBdisks\fR on \fBhostname\fR (or all hosts)\&. Mostly used for debugging\&.
128
129 .SH "EXAMPLES"
130
131 .PP
132 Request three specific file systems on \fBmachine\-a\fR get a full level 0 backup during the next \fBAMANDA\fR run\&.
133 .nf
134
135 $ amadmin daily force machine\-a / /var /usr
136 amadmin: machine\-a:/ is set to a forced level 0 tonight\&.
137 amadmin: machine\-a:/var is set to a forced level 0 tonight\&.
138 amadmin: machine\-a:/usr is set to a forced level 0 tonight\&.
139 .fi
140
141 .PP
142 Request all file systems on \fBmachine\-b\fR get a full level 0 backup during the next \fBAMANDA\fR run\&.
143 .nf
144
145 $ amadmin daily force machine\-b
146 amadmin: machine\-b:/ is set to a forced level 0 tonight\&.
147 amadmin: machine\-b:/var is set to a forced level 0 tonight\&.
148 amadmin: machine\-b:/usr is set to a forced level 0 tonight\&.
149 amadmin: machine\-b:/home is set to a forced level 0 tonight\&.
150 .fi
151
152 .PP
153 Undo the previous \fBforce\fR request for \fI/home\fR on \fBmachine\-b\fR\&. The other file systems will still get a full level 0 backup\&.
154 .nf
155
156 $ amadmin daily unforce machine\-b /home
157 amadmin: force command for machine\-b:/home cleared\&.
158 .fi
159
160 .PP
161 Locate backup images of \fI/var\fR from \fBmachine\-c\fR\&. The \fBtape or file\fR column displays either a tape label or a filename depending on whether the image is on tape or is still in the holding disk\&. If the image is on tape, the \fBfile\fR column tells you which file on the tape has the image (file number zero is a tape label)\&. This column shows zero and is not meaningful if the image is still in the holding disk\&. The \fBstatus\fR column tells you whether the backup was successful or had some type of error\&.
162 .nf
163
164 $ amadmin daily find machine\-c /var
165 date        host      disk lv tape or file                    file status
166 2000\-11\-09  machine\-c /var  0 000110                             9 OK
167 2000\-11\-08  machine\-c /var  2 000109                             2 OK
168 2000\-11\-07  machine\-c /var  2 /amanda/20001107/machine\-c\&._var\&.2  0 OK
169 2000\-11\-06  machine\-c /var  2 000107                             2 OK
170 2000\-11\-05  machine\-c /var  2 000106                             3 OK
171 2000\-11\-04  machine\-c /var  2 000105                             2 OK
172 2000\-11\-03  machine\-c /var  2 000104                             2 OK
173 2000\-11\-02  machine\-c /var  2 000103                             2 OK
174 2000\-11\-01  machine\-c /var  1 000102                             5 OK
175 2000\-10\-31  machine\-c /var  1 000101                             3 OK
176 .fi
177
178 .PP
179 Forget about the \fI/workspace\fR disk on \fBmachine\-d\fR\&. If you do not also remove the disk from the \fBdisklist\fR file, \fBAMANDA\fR will treat it as a new disk during the next run\&.
180 .nf
181
182 $ amadmin daily delete machine\-d /workspace
183 amadmin: machine\-d:/workspace deleted from database\&.
184 amadmin: NOTE: you'll have to remove these from the disklist yourself\&.
185 .fi
186
187 .PP
188 Find the next tape \fBAMANDA\fR will use (in this case, 123456)\&.
189 .nf
190
191 $ amadmin daily tape
192 The next \fBAMANDA\fR run should go onto tape 123456 or a new tape\&.
193 .fi
194
195 .PP
196 Show how well full backups are balanced across the dump cycle\&. The \fBdue\-date\fR column is the day the backups are due for a full backup\&. \fB#fs\fR shows the number of filesystems doing full backups that night, and \fBorig KB\fR and \fBout KB\fR show the estimated total size of the backups before and after any compression, respectively\&.
197
198 .PP
199 The \fBbalance\fR column shows how far off that night's backups are from the average size (shown at the bottom of the balance column)\&. \fBAMANDA\fR tries to keep the backups within +/\- 5%, but since the amount of data on each filesystem is always changing, and \fBAMANDA\fR will never delay backups just to rebalance the schedule, it is common for the schedule to fluctuate by larger percentages\&. In particular, in the case of a tape or backup failure, a bump will occur the following night, which will not be smoothed out until the next pass through the schedule\&.
200
201 .PP
202 The last line also shows an estimate of how many \fBAMANDA\fR runs will be made between full backups for a file system\&. In the example, a file system will probably have a full backup done every eight times \fBAMANDA\fR is run (e\&.g\&. every eight days)\&.
203 .nf
204
205 $ amadmin daily balance
206  due\-date  #fs   orig KB    out KB  balance
207 \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
208 11/10 Mon   21    930389    768753    +5\&.1%
209 11/11 Tue   29   1236272    733211    +0\&.2%
210 11/12 Wed   31   1552381    735796    +0\&.6%
211 11/13 Thu   23   1368447    684552    \-6\&.4%
212 11/14 Fri   32   1065603    758155    +3\&.6%
213 11/15 Sat   14   1300535    738430    +0\&.9%
214 11/16 Sun   31   1362696    740365    +1\&.2%
215 11/17 Mon   30   1427936    773397    +5\&.7%
216 11/18 Tue   11   1059191    721786    \-1\&.3%
217 11/19 Wed   19   1108737    661867    \-9\&.5%
218 \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
219 TOTAL      241  12412187   7316312   731631  (estimated 8 runs per dumpcycle)
220 .fi
221
222 .SH "FILES"
223
224 .PP
225 /usr/local/etc/amanda/\fBconfig\fR/amanda\&.conf
226
227 .SH "AUTHOR"
228
229 .PP
230 James da Silva, <jds@amanda\&.org> : Original text
231
232 .PP
233 Stefan G\&. Weichinger, <sgw@amanda\&.org>, maintainer of the \fBAMANDA\fR\-documentation: XML\-conversion
234
235 .SH "SEE ALSO"
236
237 .PP
238 \fBamanda\fR(8), \fBamcheck\fR(8), \fBamdump\fR(8), \fBamrestore\fR(8)
239