I am trying to restore a file on a machine other than the amanda server as one part of our website was hacked on the weekend.
Here are the server details: Server NetBSD/i386 v2.0.2 Amanda 2.4.4p4 HP Surestore DAT24x6 (amanda tapes 1-5, cleaning tape 6) Client in question NetBSD/i386 v2.0.2 Amanda 2.4.4p4 Here is a snap of the session of running "amrecover" on the amanda client machine. I am using the tape changer so I used settape "chg-scsi" in the amrecover session. The correct tape is in changer and actually loaded in the drive itself according to "amtape ncti current". Any idea why it gives up on the tape so quickly ? If I type "mt rewind; mt fsf 17" the drive appears to forward to that file. I have not tried to access data past that point. Thanks Scott... ncti106# amrecover -C ncti -t ncti103 -s ncti103 AMRECOVER Version 2.4.4p4. Contacting server on ncti103 ... 220 ncti103 AMANDA index server (2.4.4p4) ready. 200 Access OK Setting restore date to today (2005-08-29) 200 Working date set to 2005-08-29. Scanning /scratch3/amanda... 200 Config set to ncti. 200 Dump host set to ncti106. Trying disk /var ... Trying disk wd0f ... $CWD '/var/tmp' is on disk 'wd0f' mounted at '/var'. 200 Disk set to wd0f. set /var/tmp WARNING: not on root of selected filesystem, check man-page! amrecover> setdisk sd0a 200 Disk set to sd0a. amrecover> settape chg-scsi Using tape "chg-scsi" from server ncti103. amrecover> setdate 2005-08-22 200 Working date set to 2005-08-22. amrecover> sethost ncti106 200 Dump host set to ncti106. amrecover> setdisk sd0a 200 Disk set to sd0a. amrecover> setdate 2005-08-25 200 Working date set to 2005-08-25. amrecover> settape chg-scsi Using tape "chg-scsi" from server ncti103. amrecover> lcd /var/tmp amrecover> cd www amrecover> cd netcontech amrecover> cd custcarecenter amrecover> cd include /www/netcontech/customercarecenter/include amrecover> add header.htm Added /www/netcontech/customercarecenter/include/header.htm amrecover> extract Extracting files using tape drive chg-scsi on host ncti103. The following tapes are needed: ncti13 Restoring files into directory /var/tmp Continue [?/Y/n]? Y Extracting files using tape drive chg-scsi on host ncti103. Load tape ncti13 now Continue [?/Y/n/s/t]? Y EOF, check amidxtaped.<timestamp>.debug file on ncti103. amrecover: short block 0 bytes UNKNOWN file amrecover: Can't read file header extract_list - child returned non-zero status: 1 Continue [?/Y/n/r]? amrecover> Here is the log file from the server. amidxtaped: debug 1 pid 5055 ruid 1000 euid 1000: start at Mon Aug 29 14:15:55 2005 amidxtaped: version 2.4.4p4 amidxtaped: time 0.182: > SECURITY USER root amidxtaped: time 0.183: bsd security: remote host ncti106.ncti.com user root local user backup amidxtaped: time 0.183: amandahosts security check passed amidxtaped: time 0.183: > CONFIG=ncti amidxtaped: time 0.183: > LABEL=ncti13 amidxtaped: time 0.183: > FSF=17 amidxtaped: time 0.183: > HEADER amidxtaped: time 0.183: > DEVICE=chg-scsi amidxtaped: time 0.183: > HOST=^ncti106$ amidxtaped: time 0.183: > DISK=^sd0a$ amidxtaped: time 0.183: > DATESTAMP=20050822 amidxtaped: time 0.183: > END changer: got exit: 0 str: 2 5 1 0 changer_query: changer return was 5 1 0 changer_query: searchable = 0 changer_find: looking for ncti13 changer is searchable = 0 changer: got exit: 0 str: 2 /dev/nrst0 amidxtaped: time 12.069: slot 2: date 20050822 label ncti13 (exact label match) amidxtaped: time 12.069: label "ncti13" found amidxtaped: time 12.069: amrestore_nargs=0 amidxtaped: time 12.069: Ready to execv amrestore with: path = /usr/pkg/sbin/amrestore argv[0] = "amrestore" argv[1] = "-p" argv[2] = "-h" argv[3] = "/dev/nrst0" argv[4] = "^ncti106$" argv[5] = "^sd0a$" argv[6] = "20050822" amrestore: WARNING: not at start of tape, file numbers will be offset amrestore: 0: reached end of information amidxtaped: time 12.093: amrestore terminated normally with status: 1 amidxtaped: time 12.094: rewinding tape ... amidxtaped: time 12.112: done amidxtaped: time 12.112: pid 5055 finish time Mon Aug 29 14:16:08 2005 Scott R. Burns NETCON Technologies Inc. Suite 135 - 4474 Blakie Road London, Ontario, Canada N6L 1G7 Voice: +1.519.652.0401 Fax: +1.519.652.9275