3 .\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>
8 .TH "AMRECOVER" "8" "05/14/2008" "" ""
9 .\" disable hyphenation
11 .\" disable justification (adjust text to left margin only)
14 amrecover - Amanda index database browser
17 \fBamrecover\fR [\-C\ \fIconfig\fR] [\-s\ \fIindex\-server\fR] [\-t\ \fItape\-server\fR] [\-d\ \fItape\-device\fR] [\-o\ \fIconfigoption\fR]...
21 browses the database of
23 index files to determine which tapes contain files to recover\. Furthermore, it is able to recover files\.
25 In order to restore files in place, you must invoke
27 from the root of the backed up filesystem, or use
29 to move into that directory, otherwise a directory tree that resembles the backed up filesystem will be created in the current directory\. See the examples below for details\.
31 Amrecover will read the
32 \fBamanda\-client\.conf\fR
34 \fIconfig\fR\fB/amanda\-client\.conf\fR
39 man page for more details about
44 .nr an-no-space-flag 1
49 The Default values are those set at compile\-time\. Use
51 to recover client\-encrypted or client\-custom\-compressed tapes\.
59 \fB\-s index\-server\fR
61 Host that runs the index daemon\.
64 \fB\-t tape\-server\fR
66 Host that runs the tape server daemon\.
69 \fB\-d tape\-device\fR
71 Tape device to use on the tape server host\.
74 \fB\-o\fR \fIclientconfigoption\fR
76 See the "\fBCONFIGURATION OVERRIDE\fR" section in
82 connects to the index server and then presents a command line prompt\. Usage is similar to an ftp client\. The GNU readline library is used to provide command line history and editing if it was built in to
85 The purpose of browsing the database is to build up a
87 of files to be extracted from the backup system\. The following commands are available:
89 \fBsethost hostname\fR
91 Specifies which host to look at backup files for (default: the local host)\.
94 \fBsetdate YYYY\-MM\-DD\-HH\-MM[\-SS] | YYYY\-MM\-DD\fR
96 Set the restore time (default: now)\. File listing commands only return information on backup images for this day, for the day before with the next lower dump level, and so on, until the most recent level 0 backup on or before the specified date is encountered\.
102 1996\-07\-01 was a level 0 backup
103 1996\-07\-02 through 1996\-07\-05 were level 1 backups
104 1996\-07\-06 through 1997\-07\-08 were level 2 backups
109 \fBsetdate 1997\-07\-08\-00\fR
110 would yield files from the following days:
114 1997\-07\-08 (the latest level 2 backup)
115 1997\-07\-05 (the latest level 1 backup)
116 1997\-07\-01 (the latest level 0 backup)
120 Only the most recent version of a file will be presented\.
122 The following abbreviated date specifications are accepted:
126 dates in the current year
131 dates in the current month of the current year
135 \fBsetdisk\fR \fIdiskname\fR [\fImountpoint\fR]
137 Specifies which disk to consider (default: the disk holding the working directory where
139 is started)\. It can only be set after the host is set with
142 is the device name specified in the
146 configuration file\. The disk must be local to the host\. If
148 is not specified, all pathnames will be relative to the (unknown) mount point instead of full pathnames\.
151 \fBlisthost\fR [\fIdiskdevice\fR]
157 \fBlistdisk\fR [\fIdiskdevice\fR]
163 \fBsetdevice\fR [[\-h \fItape\-server\fR] \fItapedev\fR]
165 Specifies the host to use as the tape server, and which of its tape devices to use\. If the server is omitted, the server name reverts to the configure\-time default\. If the tape device is omitted, the default is used\.
167 If you want amrecover to use your changer, the
169 must be equal to the amrecover_changer setting on the server\.
171 If you need to change the protocol (tape:, rait:, file:, null:) then you must specify the hostname\.
175 settape 192\.168\.0\.10:file:/file1
178 You can change the tape device when amrecover ask you to load the tape:
184 Tape device: server2:/dev/nst2
186 Using tape /dev/nst2 from server server2\.
191 \fBsetmode\fR \fImode\fR
193 Set the extraction mode for Samba shares\. If
196 \fBsmb\fR, shares are sent to the Samba server to be restored back onto the PC\. If
199 \fBtar\fR, they are extracted on the local machine the same way tar volumes are extracted\.
204 Displays the extracting mode for Samba shares\.
209 Show the backup history of the current host and disk\. Dates, levels, tapes and file position on tape of each backup are displayed\.
214 Display the name of the current backup working directory\.
219 Change the backup working directory to
221 If the mount point was specified with
222 \fBsetdisk\fR, this can be a full pathname or it can be relative to the current backup working directory\. If the mount point was not specified, paths are relative to the mount point if they start with "/", otherwise they are relative to the current backup working directory\. The
224 can be a shell style wildcards\.
231 command but allow regular expression\.
238 working directory\. Files will be restored under this directory, relative to the backed up filesystem\.
251 List the contents of the current backup working directory\. See the description of the
253 command for how the view of the directory is built up\. The backup date is shown for each file\.
256 \fBadd\fR \fIitem1 item2 \.\.\.\fR
258 Add the specified files or directories to the restore list\. Each item may have shell style wildcards\.
261 \fBaddx\fR \fIitem1 item2 \.\.\.\fR
263 Add the specified files or directories to the restore list\. Each item may be a regular expression\.
266 \fBdelete\fR \fIitem1 item2 \.\.\.\fR
268 Delete the specified files or directories from the restore list\. Each item may have shell style wildcards\.
271 \fBdeletex\fR \fIitem1 item2 \.\.\.\fR
273 Delete the specified files or directories from the restore list\. Each item may be a regular expression\.
276 \fBlist\fR \fIfile\fR
278 Display the contents of the restore list\. If a file name is specified, the restore list is written to that file\. This can be used to manually extract the files from the
286 Clear the restore list\.
291 Close the connection to the index server and exit\.
296 Close the connection to the index server and exit\.
301 Start the extract sequence (see the examples below)\. Make sure the local working directory is the root of the backed up filesystem, or another directory that will behave like that\. Use
303 to display the local working directory, and
310 Display a brief list of these commands\.
314 The following shows the recovery of an old
322 syslog\.7: No such file or directory
324 AMRECOVER Version 2\.4\.2\. Contacting server on oops \.\.\.
325 220 oops \fIAmanda\fR index server (2\.4\.2) ready\.
326 Setting restore date to today (1997\-12\-09)
327 200 Working date set to 1997\-12\-09\.
328 200 Config set to daily\.
329 200 Dump host set to this\-host\.some\.org\.
330 $CWD \'/var/log\' is on disk \'/var\' mounted at \'/var\'\.
331 200 Disk set to /var\.
333 WARNING: not on root of selected filesystem, check man\-page!
335 1997\-12\-09 daemon\.log
338 1997\-12\-08 sysidconfig\.log
339 1997\-12\-08 syslog\.0
340 1997\-12\-08 syslog\.1
341 1997\-12\-08 syslog\.2
342 1997\-12\-08 syslog\.3
343 1997\-12\-08 syslog\.4
344 1997\-12\-08 syslog\.5
345 1997\-12\-08 syslog\.6
346 1997\-12\-08 syslog\.7
347 amrecover> add syslog\.7
355 Extracting files using tape drive /dev/nst0 on host 192\.168\.0\.10
357 The following tapes are needed: DMP014
359 Restoring files into directory /var
364 set owner/mode for \'\.\'? [yn] n
369 \-rw\-r\-\-r\-\- 1 root other 12678 Oct 14 16:36 syslog\.7
373 If you do not want to overwrite existing files, create a subdirectory to run
375 from and then move the restored files afterward\.
380 # (umask 077 ; mkdir \.restore)
383 AMRECOVER Version 2\.4\.2\. Contacting server on oops \.\.\.
389 amrecover> add syslog\.7
395 Extracting files using tape drive /dev/nst0 on host 192\.168\.0\.10
399 # mv \-i log/syslog\.7 \.\./log/syslog\.7\-restored
407 by hand instead of letting
411 command after browsing to display the needed tapes\.
417 AMRECOVER Version 2\.4\.2\. Contacting server on oops \.\.\.
421 amrecover> add syslog syslog\.6 syslog\.7
426 TAPE DMP014 LEVEL 0 DATE 1997\-12\-08
429 TAPE DMP015 LEVEL 1 DATE 1997\-12\-09
437 command shows each tape that has a backup of the current disk along with the date of the backup, the level, the tape label and the file position on the tape\. All active tapes are listed, not just back to the most recent full dump\.
439 Tape file position zero is a label\. The first backup image is in file position one\.
445 AMRECOVER Version 2\.4\.2\. Contacting server on oops \.\.\.
448 200\- Dump history for config "daily" host "this\-host\.some\.org" disk "/var"
449 201\- 1997\-12\-09 1 DMP015 9
450 201\- 1997\-12\-08 1 DMP014 11
451 201\- 1997\-12\-07 0 DMP013 22
452 201\- 1997\-12\-06 1 DMP012 16
453 201\- 1997\-12\-05 1 DMP011 9
454 201\- 1997\-12\-04 0 DMP010 11
455 201\- 1997\-12\-03 1 DMP009 7
456 201\- 1997\-12\-02 1 DMP008 7
457 201\- 1997\-12\-01 1 DMP007 9
458 201\- 1997\-11\-30 1 DMP006 6
470 commands will use $PAGER to display the file lists\. Defaults to
472 if PAGER is not set\.
475 If set, $AMANDA_SERVER will be used as index\-server\. The value will take precedence over the compiled default, but will be overridden by the \-s switch\.
477 \fBAMANDA_TAPE_SERVER\fR
478 If set, $AMANDA_TAPE_SERVER will be used as tape\-server\. The value will take precedence over the compiled default, but will be overridden by the \-t switch\.
482 <alan@kauri\.auck\.irl\.cri\.nz>
485 Stefan G\. Weichinger,
486 <sgw@amanda\.org>, maintainer of the
487 \fIAmanda\fR\-documentation: XML\-conversion
491 \fBamanda-client.conf\fR(5),
493 \fBamfetchdump\fR(8),
495 \fI\%http://wiki.zmanda.com\fR