583f6497de158c482e3484b906134bb038c8f76a
[debian/amanda] / man / amaddclient.8
1 '\" t
2 .\"     Title: amaddclient
3 .\"    Author: Kevin Till <kevin.till@zmanda.com>
4 .\" Generator: DocBook XSL Stylesheets vsnapshot_8273 <http://docbook.sf.net/>
5 .\"      Date: 11/05/2009
6 .\"    Manual: System Administration Commands
7 .\"    Source: Amanda 2.6.1p2
8 .\"  Language: English
9 .\"
10 .TH "AMADDCLIENT" "8" "11/05/2009" "Amanda 2\&.6\&.1p2" "System Administration Commands"
11 .\" -----------------------------------------------------------------
12 .\" * set default formatting
13 .\" -----------------------------------------------------------------
14 .\" disable hyphenation
15 .nh
16 .\" disable justification (adjust text to left margin only)
17 .ad l
18 .\" -----------------------------------------------------------------
19 .\" * MAIN CONTENT STARTS HERE *
20 .\" -----------------------------------------------------------------
21 .SH "NAME"
22 amaddclient \- program to add client to an existing \fIAmanda\fR configuration
23 .SH "SYNOPSIS"
24 .HP \w'\fBamaddclient\fR\ 'u
25 \fBamaddclient\fR \-\-config \fIconfig\fR ||
26  \-\-client \fIclient\ name\fR ||
27  \-\-diskdev \fIdirectory\ to\ backup\fR [\-\-m] [\-\-dumptype\ \fIstring\fR] [\-\-includefile\ \fIstring\fR] [\-\-includelist\ \fIstring\fR] [\-\-excludefile\ \fIstring\fR] [\-\-excludelist\ \fIstring\fR] [\-\-user\ \fIstring\fR] [\-\-auth\ \fIstring\fR] [\-\-gnutar_list_dir\ \fIstring\fR] [\-\-amandates\ \fIstring\fR] [\-\-no\-client\-update] [\-\-batch] [\-\-help]
28 .SH "DESCRIPTION"
29 .PP
30 After Amanda rpms are successfully installed and
31 \fBamserverconfig\fR
32 is run,
33 \fBamaddclient\fR
34 will add client to the
35 \fIAmanda\fR
36 configuration\&.
37 \fBamaddclient\fR
38 create or update
39 \fIAmanda\fR
40 \fBdisklist\fR(5)
41 file and create or update /var/lib/amanda/\&.amandahosts file on the server\&.
42 .PP
43 If \-\-no\-client\-update is not specified,
44 \fBamaddclient\fR
45 will attempt to update or create /var/lib/amanda/\&.amandahost, amanda\-client\&.conf and gnutar\-lists on the client\&. (See
46 ssh\-keygen(1)
47 and
48 ssh\-add(1)
49 for detail\&.)
50 .PP
51
52 \fBamaddclient\fR
53 must be run by user amandabackup\&.
54 .PP
55 \-\-config, \-\-client and \-\-diskdev must be specified\&.
56 .SH "OPTIONS"
57 .PP
58 .RS 4
59
60 Options may be abbreviated, as long as the abbreviation is not ambiguous\&. Option argument can either separated by \'=\' or a space\&.
61 Example: \-\-conf=v253, \-\-client client8\&.zmanda\&.com
62 .RE
63 .PP
64 \fB\-\-config config\fR
65 .RS 4
66 \fIAmanda\fR
67 configuration which this program will add the client to\&.
68 .RE
69 .PP
70 \fB\-\-client client\fR
71 .RS 4
72 The name of the client machine to add\&. FQDN name recommended\&.
73 .RE
74 .PP
75 \fB\-\-diskdev diskdev\fR
76 .RS 4
77 Directory for this
78 \fIAmanda\fR
79 configuration to backup\&.
80 .RE
81 .PP
82 \fB\-\-m\fR
83 .RS 4
84 Modify existing entry in the
85 \fBdisklist\fR(5)
86 file\&.
87 .sp
88 Note: if
89 \fBdisklist\fR(5)
90 file has been modified manually, this option might not work\&.
91 .RE
92 .PP
93 \fB\-\-dumptype dumptype\fR
94 .RS 4
95 dumptype to use\&. Dumptype must be defined in /etc/amanda/template\&.d/dumptypes or /etc/amanda/$config/amanda\&.conf file\&. Default: [user\-tar]
96 .RE
97 .PP
98 \fB\-\-user string\fR
99 .RS 4
100 name of user using
101 \fBamrecover\fR
102 on the client, default is root\&.
103 .RE
104 .PP
105 \fB\-\-auth string\fR
106 .RS 4
107 authentication method to use when running
108 \fBamrecover\fR
109 from the client , default is bsdtcp\&.
110 .RE
111 .PP
112 \fB\-\-gnutar_list_dir string\fR
113 .RS 4
114 directory where gnutar keep its state file on the client\&. Absolute path required\&. Default is /var/lib/amanda/gnutar\-lists\&. If \-\-no\-client\-update is not set, this program will attempt to create the directory on the client\&.
115 .RE
116 .PP
117 \fB\-\-amandates string\fR
118 .RS 4
119 file where amanda keep the date of each dumplevel on the client, default is /etc/amandates\&.
120 .RE
121 .PP
122 \fB\-\-batch\fR
123 .RS 4
124 Turn on batch mode when copying files to the client, default is off
125 .RE
126 .PP
127 \fB\-\-no\-client\-update\fR
128 .RS 4
129 If this option is set,
130 \fBamaddclient\fR
131 will not attempt to update/create \&.amandahosts, amanda\-client\&.conf and gnutar\-lists file on the client\&.
132 .RE
133 .PP
134 \fB\-\-help\fR
135 .RS 4
136 Display usage\&.
137 .RE
138 .PP
139 .RS 4
140  
141 If any of the following four options are used,  \fBamaddclient\fR will extend the dumptype definition to an in\-line definition in the \fBdisklist\fR(5) file\&.
142 .RE
143 .PP
144 \fB\-\-includefile string\fR
145 .RS 4
146 string is a glob expression
147 .RE
148 .PP
149 \fB\-\-includelist string\fR
150 .RS 4
151 string is a file name on the client containing glob expressions\&. Specify either \-\-includefile or \-\-includelist\&.
152 .RE
153 .PP
154 \fB\-\-excludefile string\fR
155 .RS 4
156 string is a glob expression
157 .RE
158 .PP
159 \fB\-\-excludelist string\fR
160 .RS 4
161 string is a file name on the client containing glob expressions\&. Specify either \-\-excludefile or \-\-excludelist\&.
162 .RE
163 .SH "FILES"
164 .PP
165 \fB/var/lib/amanda/template\&.d\fR
166 .RS 4
167 Amanda configuration template files install location
168 .RE
169 .PP
170 \fB/var/lib/amanda\fR
171 .RS 4
172 amandabackup home directory
173 .RE
174 .PP
175 \fB/var/lib/amanda/\&.amandahosts\fR
176 .RS 4
177 \fIAmanda\fR
178 authentication file\&.
179 .RE
180 .PP
181 \fB/var/lib/amanda/gnutar\-lists\fR
182 .RS 4
183 A directory which contains backup timestamp and list of files backed up\&.
184 .RE
185 .PP
186 \fB/etc/amanda/$config\fR
187 .RS 4
188 \fIAmanda\fR
189 configuration files location for $config(e\&.g: DailySet1)\&.
190 .RE
191 .PP
192 \fB/etc/amanda/template\&.d\fR
193 .RS 4
194 A directory contains dumptypes and tapetypes files used by all
195 \fIAmanda\fR
196 configurations\&.
197 .RE
198 .PP
199 \fB/etc/amandates\fR
200 .RS 4
201 \fIAmanda\fR
202 file on the client\&. It keeps track of structures of previous dumps\&.
203 .RE
204 .PP
205 \fB/tmp/amanda\fR
206 .RS 4
207 directory contains
208 \fIAmanda\fR
209 debug log files\&.
210 .RE
211 .SH "RETURN VALUE"
212
213 On success, zero is returned\&.  On error, 1 is returned\&.
214 .SH "SEE ALSO"
215 .PP
216 \fBamanda\fR(8),
217 \fBamanda.conf\fR(5),
218 \fBamserverconfig\fR(8)
219 \fBssh-keygen\fR(1)
220 \fBssh-add\fR(1)
221 \fBscp\fR(1)
222 : http://wiki.zmanda.com
223 .SH "AUTHOR"
224 .PP
225 \fBKevin Till\fR <\&kevin\&.till@zmanda\&.com\&>
226 .RS 4
227 Zmanda, Inc\&. (http://www\&.zmanda\&.com)
228 .RE