1 .TH AMRECOVER 8 "29 November 1996" "Alan M. McIvor" "AMANDA INDEX" \" -*- nroff -*-
3 .ie '\\$3'' \\fB\\$1\\fP \\fI\\$2\\fP
4 .el .ie '\\$2'' \\fB\\$1\\fP [ \\fI\\$3\\fP ]
5 .el \\fB\\$1\\fP \\fI\\$2\\fP [ \\fI\\$3\\fP ]
16 amrecover \- Amanda index database browser
39 browses the database of Amanda index files to determine which tapes
40 contain files to recover. Furthermore, it is able to recover files.
42 In order to restore files in place, you must invoke
44 from the root of the backed up filesystem, or use
46 to move into that directory, otherwise a directory tree that resembles
47 the backed up filesystem will be created in the current directory.
48 See the examples below for details.
52 man page for more details about Amanda.
57 (default: @DEFAULT_CONFIG@).
60 Host that runs the index daemon
61 (default: @DEFAULT_SERVER@).
64 Host that runs the tape server daemon
65 (default: @DEFAULT_TAPE_SERVER@).
68 Tape device to use on the tape server host
69 (default: @DEFAULT_TAPE_DEVICE@).
72 connects to the index server and then presents a command line prompt.
73 Usage is similar to an ftp client.
74 The GNU readline library is used to provide command line history and editing
78 The purpose of browsing the database is to build up a
80 of files to be extracted from the backup system.
81 The following commands are available:
84 Specifies which host to look at backup files for
85 (default: the local host).
87 .CP setdate YYYY-MM-DD
90 File listing commands only return information on
91 backup images for this day,
92 for the day before with the next lower dump level,
94 until the most recent level 0 backup on or before
95 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 then if 1997-07-08 is the requested date,
110 files from the following days would be used:
115 1997-07-08 (the latest level 2 backup)
116 1997-07-05 (the latest level 1 backup)
117 1997-07-01 (the latest level 0 backup)
122 Only the most recent version of a file will be presented.
124 The following abbreviated date specifications are accepted:
129 dates in the current year
132 dates in the current month of the current year
136 .CP setdisk diskname mountpoint
137 Specifies which disk to consider
138 (default: the disk holding the working directory where
141 It can only be set after the host is set with
144 is the device name specified in the
149 The disk must be local to the host.
152 is not specified, all pathnames will be relative to the (unknown)
153 mount point instead of full pathnames.
155 .CP listdisk [diskdevice]
159 .CP settape [[server]:][tapedev|default]
160 Specifies the host to use as the tape server, and which of its tape
162 If the server is omitted, but the colon is not, the
163 server name reverts to @DEFAULT_TAPE_SERVER@, the configure-time
165 If the tape device is omitted, it remains unchanged.
166 To use the default tape device selected by the tape server, the word
169 If no argument is specified, or the argument is an
170 empty string, no changes occur, and the current settings are
173 If you want amrecover to use your changer, the
175 must be equal to the amrecover_changer setting on the server.
177 If you need to change the protocol (tape:, rait:, file:, null:) then you
178 must specify the hostname.
183 settape @DEFAULT_TAPE_SERVER@:file:/file1
188 You can change the tape device when amrecover ask you to load the tape:
195 Tape device: server2:/dev/nst2
197 Using tape /dev/nst2 from server server2.
204 Set the extraction mode for Samba shares.
209 shares are sent to the Samba server
210 to be restored back onto the PC.
215 they are extracted on the local machine the same way tar volumes are extracted.
218 Displays the extracting mode for Samba shares.
221 Show the backup history of the current host and disk.
222 Dates, levels, tapes and file position on tape of each backup are displayed.
225 Display the name of the current backup working directory.
228 Change the backup working directory to
230 If the mount point was specified with
232 this can be a full pathname or it can be
233 relative to the current backup working directory.
234 If the mount point was not specified,
235 paths are relative to the mount point if they start with "/",
236 otherwise they are relative to the current backup working directory.
239 can be a shell style wildcards.
244 command but allow regular expression.
250 Files will be restored under this directory,
251 relative to the backed up filesystem.
260 List the contents of the current backup working directory.
261 See the description of the
263 command for how the view of the
264 directory is built up.
265 The backup date is shown for each file.
267 .CP add item1 "item2 ..."
268 Add the specified files or directories to the restore list.
269 Each item may have shell style wildcards.
271 .CP addx item1 "item2 ..."
272 Add the specified files or directories to the restore list.
273 Each item may be a regular expression.
275 .CP delete item1 "item2 ..."
276 Delete the specified files or directories from the restore list.
277 Each item may have shell style wildcards.
279 .CP deletex item1 "item2 ..."
280 Delete the specified files or directories from the restore list.
281 Each item may be a regular expression.
284 Display the contents of the restore list.
285 If a file name is specified,
286 the restore list is written to that file.
287 This can be used to manually extract the files from the Amanda tapes with
291 Clear the restore list.
294 Close the connection to the index server and exit.
297 Close the connection to the index server and exit.
300 Start the extract sequence (see the examples below). Make sure the
301 local working directory is the root of the backed up filesystem, or
302 another directory that will behave like that. Use
304 to display the local working directory, and
309 Display a brief list of these commands.
311 The following shows the recovery of an old
319 syslog.7: No such file or directory
321 AMRECOVER Version 2.4.2. Contacting server on @DEFAULT_SERVER@ ...
322 220 @DEFAULT_SERVER@ AMANDA index server (2.4.2) ready.
323 Setting restore date to today (1997-12-09)
324 200 Working date set to 1997-12-09.
325 200 Config set to @DEFAULT_CONFIG@.
326 200 Dump host set to this-host.some.org.
327 $CWD '/var/log' is on disk '/var' mounted at '/var'.
328 200 Disk set to /var.
330 WARNING: not on root of selected filesystem, check man-page!
332 1997-12-09 daemon.log
335 1997-12-08 sysidconfig.log
344 amrecover> add syslog.7
352 Extracting files using tape drive @DEFAULT_TAPE_DEVICE@ on host @DEFAULT_TAPE_SERVER@
354 The following tapes are needed: DMP014
356 Restoring files into directory /var
361 set owner/mode for '.'? [yn] n
366 -rw-r--r-- 1 root other 12678 Oct 14 16:36 syslog.7
370 If you do not want to overwrite existing files,
371 create a subdirectory to run
373 from and then move the restored files afterward.
378 # (umask 077 ; mkdir .restore)
381 AMRECOVER Version 2.4.2. Contacting server on @DEFAULT_SERVER@ ...
387 amrecover> add syslog.7
393 Extracting files using tape drive @DEFAULT_TAPE_DEVICE@ on host @DEFAULT_TAPE_SERVER@
397 # mv -i log/syslog.7 ../log/syslog.7-restored
405 by hand instead of letting
410 command after browsing to display the needed tapes.
416 AMRECOVER Version 2.4.2. Contacting server on @DEFAULT_SERVER@ ...
420 amrecover> add syslog syslog.6 syslog.7
425 TAPE DMP014 LEVEL 0 DATE 1997-12-08
428 TAPE DMP015 LEVEL 1 DATE 1997-12-09
436 command shows each tape that has a backup of the
437 current disk along with the date of the backup,
440 and the file position on the tape.
441 All active tapes are listed, not just back to
442 the most recent full dump.
444 Tape file position zero is a label.
445 The first backup image is in file position one.
451 AMRECOVER Version 2.4.2. Contacting server on @DEFAULT_SERVER@ ...
454 200- Dump history for config "@DEFAULT_CONFIG@" host "this-host.some.org" disk "/var"
455 201- 1997-12-09 1 DMP015 9
456 201- 1997-12-08 1 DMP014 11
457 201- 1997-12-07 0 DMP013 22
458 201- 1997-12-06 1 DMP012 16
459 201- 1997-12-05 1 DMP011 9
460 201- 1997-12-04 0 DMP010 11
461 201- 1997-12-03 1 DMP009 7
462 201- 1997-12-02 1 DMP008 7
463 201- 1997-12-01 1 DMP007 9
464 201- 1997-11-30 1 DMP006 6
477 commands will use $PAGER to display the file lists.
483 Alan M. McIvor <alan@kauri.auck.irl.cri.nz>