Amrecover is the prefered utility for recovering small numbers of files from linux filesystems, particularly if the user involved is standing in front of you and doesn't know exactly was lost or when, as there is interactive access to the catalogue.
The tape drive doesn't (didn't used to) take kindly to being forced to stop streaming, so restores need to be carried out directly to bilsdale at present, as the tape runs at 20Mbyte/sec, which cannot be squashed into even a 100Mbit pipe. It may be that the introduciton of 1Gbit networking and/or the tape drive swap will avoid this, but until this is tested, the safest thing is to restore to bilsdale and move the files later. If this interactive recovery cannot be used, the next best thing is to use amrecover as far as is needed to get a list of tapes, and dump images, then to use amrestore to stage these on disk and selectively restore from these images.
Here is an annotated typescript showing the use of amrecover.
[root@bilsdale tmp]# ssh byerhope -l root "df /export/staff1" root@byerhope's password: Filesystem 1k-blocks Used Available Use% Mounted on /dev/sdf2 17496716 6279872 10328048 38% /export/staff1
[root@bilsdale tmp]# PATH=/usr/local/amanda/current/sbin:$PATH [root@bilsdale tmp]# export PATH [root@bilsdale tmp]# amrecover -s bilsdale -t bilsdale -d /dev/st0 AMRECOVER Version 2.4.2p2. Contacting server on bilsdale ... 220 bilsdale AMANDA index server (2.4.2p2) ready. 200 Access OK Setting restore date to today (2002-05-30) 200 Working date set to 2002-05-30. 200 Config set to ncl. 501 No index records for host: bilsdale.ncl.ac.uk. Invalid?
amrecover> sethost byerhope 200 Dump host set to byerhope. amrecover> setdate 2002-05-28 200 Working date set to 2002-05-28. amrecover> setdisk /dev/sdf2 200 Disk set to /dev/sdf2.
amrecover> lcd /var/spool/amanda amrecover> ls 2002-05-28 . ... 2002-05-28 ncrr/ ... amrecover> cd ncrr /dev/sdf2/ncrr
amrecover> add .bash_history Added /ncrr/.bash_history amrecover> extract Extracting files using tape drive /dev/st0 on host bilsdale. The following tapes are needed: byerhope02 Restoring files into directory /var/spool/amanda Continue? [Y/n]: y
[root@bilsdale tmp]# su - operator sh-2.04$ amtape ncl slot 5 amtape: changed to slot 5 on /dev/nst0 sh-2.04$ logout [root@bilsdale tmp]#
/tmp/amanda
for recently modified files matching amrecover.*.debug
or
amidxtaped.*.debug
.
Load tape byerhope02 now Continue? [Y/n]: y ./ncrr/.bash_history
amrecover> quit 200 Good bye. [root@bilsdale tmp]#
[root@bilsdale amanda]# su - operator sh-2.04$ amcheck -s ncl Amanda Tape Server Host Check ----------------------------- Holding disk /var/spool/amanda2: 6971800 KB disk space available, using 6255000 KB Holding disk /var/spool/amanda: 32030448 KB disk space available, using 28884720 KB amcheck-server: slot 7: date 20020412 label byerhope10 (active tape) amcheck-server: slot 1: date 20020404 label byerhope04 (exact label match) NOTE: skipping tape-writable test Tape byerhope04 label ok Server check took 170.367 seconds (brought to you by Amanda 2.4.2p2) sh-2.04$ logout [root@bilsdale amanda]#