3 .\" Author: Alan M. McIvor <alan@kauri.auck.irl.cri.nz>
4 .\" Generator: DocBook XSL Stylesheets vsnapshot_8273 <http://docbook.sf.net/>
6 .\" Manual: System Administration Commands
7 .\" Source: Amanda 3.1.0
10 .TH "AMRECOVER" "8" "06/01/2010" "Amanda 3\&.1\&.0" "System Administration Commands"
11 .\" -----------------------------------------------------------------
12 .\" * set default formatting
13 .\" -----------------------------------------------------------------
14 .\" disable hyphenation
16 .\" disable justification (adjust text to left margin only)
18 .\" -----------------------------------------------------------------
19 .\" * MAIN CONTENT STARTS HERE *
20 .\" -----------------------------------------------------------------
22 amrecover \- Amanda index database browser
24 .HP \w'\fBamrecover\fR\ 'u
25 \fBamrecover\fR [\-C\ \fIconfig\fR] [\-s\ \fIindex\-server\fR] [\-t\ \fItape\-server\fR] [\-d\ \fItape\-device\fR] [\-o\ \fIconfigoption\fR]...
29 browses the database of Amanda index files to determine which tapes contain files to recover\&. Furthermore, it is able to recover files\&.
31 In order to restore files in place, you must invoke
33 from the root of the backed up filesystem, or use
35 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\&.
37 Amrecover will read the
38 \fBamanda\-client\&.conf\fR
40 \fIconfig\fR\fB/amanda\-client\&.conf\fR
41 file\&. If no configuration name is supplied on the command line, Amrecover will try the compiled\-in default configuration ,usually
46 man page for more details about Amanda\&.
53 .nr an-no-space-flag 1
61 The Default values are those set at compile\-time\&. Use
63 to recover client\-encrypted or client\-custom\-compressed tapes\&.
69 Amanda configuration\&.
72 \fB\-s index\-server\fR
74 Host that runs the index daemon\&.
77 \fB\-t tape\-server\fR
79 Host that runs the tape server daemon\&.
82 \fB\-d tape\-device\fR
84 Tape device to use on the tape server host\&.
87 \fB\-o\fR \fIclientconfigoption\fR
89 See the "\fBCONFIGURATION OVERRIDE\fR" section in
95 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
98 The purpose of browsing the database is to build up a
100 of files to be extracted from the backup system\&. The following commands are available:
102 \fBsethost hostname\fR
104 Specifies which host to look at backup files for (default: the local host)\&.
107 \fBsetdate YYYY\-MM\-DD\-HH\-MM[\-SS] | YYYY\-MM\-DD\fR
109 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\&.
117 1996\-07\-01 was a level 0 backup
118 1996\-07\-02 through 1996\-07\-05 were level 1 backups
119 1996\-07\-06 through 1997\-07\-08 were level 2 backups
126 \fBsetdate 1997\-07\-08\-00\fR
127 would yield files from the following days:
133 1997\-07\-08 (the latest level 2 backup)
134 1997\-07\-05 (the latest level 1 backup)
135 1997\-07\-01 (the latest level 0 backup)
141 Only the most recent version of a file will be presented\&.
143 The following abbreviated date specifications are accepted:
147 dates in the current year
152 dates in the current month of the current year
156 \fBsetdisk\fR \fIdiskname\fR [\fImountpoint\fR]
158 Specifies which disk to consider (default: the disk holding the working directory where
160 is started)\&. It can only be set after the host is set with
163 is the device name specified in the
166 \fBdisklist\fR(5)\&. The disk must be local to the host\&. If
168 is not specified, all pathnames will be relative to the (unknown) mount point instead of full pathnames\&.
171 \fBlisthost\fR [\fIdiskdevice\fR]
177 \fBlistdisk\fR [\fIdiskdevice\fR]
189 \fBsetproperty\fR [\fBappend\fR] [\fBpriority\fR] \fIname\fR [\fIvalue\fR \&.\&.\&.]
198 to the values already set for this property\&. Without
199 \fIvalue\fR, the property is unset\&. The
201 keyword is unused, it is present for ease of copy/paste from application definition\&.
204 \fBsetdevice\fR [[\-h \fItape\-server\fR] \fItapedev\fR]
206 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\&.
208 If you want amrecover to use your changer, the
210 must be equal to the amrecover_changer setting on the server\&.
212 Since device names contain colons, you must always specify the hostname\&.
214 settape 192\&.168\&.0\&.10:file:/file1
216 You can change the tape device when amrecover ask you to load the tape:
220 Tape device: server2:/dev/nst2
222 Using tape /dev/nst2 from server server2\&.
226 \fBsetmode\fR \fImode\fR
228 Set the extraction mode for Samba shares\&. If
231 \fBsmb\fR, shares are sent to the Samba server to be restored back onto the PC\&. If
234 \fBtar\fR, they are extracted on the local machine the same way tar volumes are extracted\&.
239 Displays the extracting mode for Samba shares\&.
244 Show the backup history of the current host and disk\&. Dates, levels, tapes and file position on tape of each backup are displayed\&.
249 Display the name of the current backup working directory\&.
254 Change the backup working directory to
256 If the mount point was specified with
257 \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
259 can be a shell style wildcards\&.
266 command but allow regular expression\&.
273 working directory\&. Files will be restored under this directory, relative to the backed up filesystem\&.
286 List the contents of the current backup working directory\&. See the description of the
288 command for how the view of the directory is built up\&. The backup date is shown for each file\&.
291 \fBadd\fR \fIitem1 item2 \&.\&.\&.\fR
293 Add the specified files or directories to the restore list\&. Each item may have shell style wildcards\&.
296 \fBaddx\fR \fIitem1 item2 \&.\&.\&.\fR
298 Add the specified files or directories to the restore list\&. Each item may be a regular expression\&.
301 \fBdelete\fR \fIitem1 item2 \&.\&.\&.\fR
303 Delete the specified files or directories from the restore list\&. Each item may have shell style wildcards\&.
306 \fBdeletex\fR \fIitem1 item2 \&.\&.\&.\fR
308 Delete the specified files or directories from the restore list\&. Each item may be a regular expression\&.
311 \fBlist\fR \fIfile\fR
313 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 Amanda tapes with
319 Clear the restore list\&.
324 Close the connection to the index server and exit\&.
329 Close the connection to the index server and exit\&.
334 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
336 to display the local working directory, and
343 Display a brief list of these commands\&.
347 The following shows the recovery of an old
353 syslog\&.7: No such file or directory
355 AMRECOVER Version 2\&.4\&.2\&. Contacting server on oops \&.\&.\&.
356 220 oops Amanda index server (2\&.4\&.2) ready\&.
357 Setting restore date to today (1997\-12\-09)
358 200 Working date set to 1997\-12\-09\&.
359 200 Config set to MyConfig\&.
360 200 Dump host set to this\-host\&.some\&.org\&.
361 $CWD \'/var/log\' is on disk \'/var\' mounted at \'/var\'\&.
362 200 Disk set to /var\&.
364 WARNING: not on root of selected filesystem, check man\-page!
366 1997\-12\-09 daemon\&.log
369 1997\-12\-08 sysidconfig\&.log
370 1997\-12\-08 syslog\&.0
371 1997\-12\-08 syslog\&.1
372 1997\-12\-08 syslog\&.2
373 1997\-12\-08 syslog\&.3
374 1997\-12\-08 syslog\&.4
375 1997\-12\-08 syslog\&.5
376 1997\-12\-08 syslog\&.6
377 1997\-12\-08 syslog\&.7
378 amrecover> add syslog\&.7
379 Added /log/syslog\&.7
382 amrecover> lcd \&.\&.
386 Extracting files using tape drive /dev/nst0 on host 192\&.168\&.0\&.10
388 The following tapes are needed: DMP014
390 Restoring files into directory /var
395 set owner/mode for \'\&.\'? [yn] n
400 \-rw\-r\-\-r\-\- 1 root other 12678 Oct 14 16:36 syslog\&.7
403 If you do not want to overwrite existing files, create a subdirectory to run
405 from and then move the restored files afterward\&.
408 # (umask 077 ; mkdir \&.restore)
411 AMRECOVER Version 2\&.4\&.2\&. Contacting server on oops \&.\&.\&.
417 amrecover> add syslog\&.7
418 Added /log/syslog\&.7
423 Extracting files using tape drive /dev/nst0 on host 192\&.168\&.0\&.10
427 # mv \-i log/syslog\&.7 \&.\&./log/syslog\&.7\-restored
434 by hand instead of letting
438 command after browsing to display the needed tapes\&.
442 AMRECOVER Version 2\&.4\&.2\&. Contacting server on oops \&.\&.\&.
446 amrecover> add syslog syslog\&.6 syslog\&.7
448 Added /log/syslog\&.6
449 Added /log/syslog\&.7
451 TAPE DMP014 LEVEL 0 DATE 1997\-12\-08
454 TAPE DMP015 LEVEL 1 DATE 1997\-12\-09
461 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\&.
463 Tape file position zero is a label\&. The first backup image is in file position one\&.
467 AMRECOVER Version 2\&.4\&.2\&. Contacting server on oops \&.\&.\&.
470 200\- Dump history for config "MyConfig" host "this\-host\&.some\&.org" disk "/var"
471 201\- 1997\-12\-09 1 DMP015 9
472 201\- 1997\-12\-08 1 DMP014 11
473 201\- 1997\-12\-07 0 DMP013 22
474 201\- 1997\-12\-06 1 DMP012 16
475 201\- 1997\-12\-05 1 DMP011 9
476 201\- 1997\-12\-04 0 DMP010 11
477 201\- 1997\-12\-03 1 DMP009 7
478 201\- 1997\-12\-02 1 DMP008 7
479 201\- 1997\-12\-01 1 DMP007 9
480 201\- 1997\-11\-30 1 DMP006 6
491 commands will use $PAGER to display the file lists\&. Defaults to
493 if PAGER is not set\&.
496 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\&.
498 \fBAMANDA_TAPE_SERVER\fR
499 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\&.
503 \fBamanda-client.conf\fR(5),
505 \fBamfetchdump\fR(8),
509 : http://wiki.zmanda.com/
512 \fBAlan M\&. McIvor\fR <\&alan@kauri\&.auck\&.irl\&.cri\&.nz\&>
514 \fBStefan G\&. Weichinger\fR <\&sgw@amanda\&.org\&>