Hi,
can someone give me some advice on the following issue using amrecover.
When I'm trying to restore files using amrecover I get an error back from
amidxtaped, complaining about permissions on /dev/nst0.
Though I can manually use amrestore using the supplied command line
arguments from amrestore to amrecover (see included log file)
Any advice on this?
Thanks,
Lieven
<cut>
amrecover> add sh_2002.xls
Added /dai/admin_intern/bureau/uren/overz2002/sh_2002.xls
amrecover> list
TAPE DAEDag10 LEVEL 2 DATE 2002-01-18
/dai/admin_intern/bureau/uren/overz2002/sh_2002.xls
amrecover> extract
Extracting files using tape drive /dev/nst0 on host daeserver.dae.be.
The following tapes are needed: DAEDag10
Restoring files into directory /export/p2/software/backuprestore
Continue? [Y/n]: y
Load tape DAEDag10 now
Continue? [Y/n]: y
EOF, check amidxtaped.debug file on daeserver.dae.be.
amrecover: short block 0 bytes
UNKNOWN file
amrecover: Can't read file header
extract_list - child returned non-zero status: 1
Continue? [Y/n]: y
amrecover> [root@daeserver backuprestore]#
<amidxtaped log>
amidxtaped: debug 1 pid 16384 ruid 102 euid 102 start time Wed Feb 6
12:53:48 2002
amidxtaped: version 2.4.2p1
> SECURITY USER root
bsd security: remote host daeserver.dae.be user root local user amanda
amandahosts security check passed
> 6
amrestore_nargs=6
> -h
> -p
> /dev/nst0
> daeserver
> ^/export/p2$
> 20020118
Ready to execv amrestore with:
path = /usr/local/sbin/amrestore
argv[0] = "amrestore"
argv[1] = "-h"
argv[2] = "-p"
argv[3] = "/dev/nst0"
argv[4] = "daeserver"
argv[5] = "^/export/p2$"
argv[6] = "20020118"
amrestore: could not open tape /dev/nst0: Permission denied
amidxtaped: amrestore terminated normally with status: 2
Rewinding tape: no tape online
amidxtaped: pid 16384 finish time Wed Feb 6 12:53:48 2002
[root@daeserver amanda]# ls -l /usr/local/sbin/amrestore
-rwxr-xr-x 1 amanda amanda 209851 Mar 22 2001
/usr/local/sbin/amrestore*
[root@daeserver amanda]# su amanda
[amanda@daeserver amanda]$ /usr/local/sbin/amrestore -h -p /dev/nst0
daeserver ^/export/p2$ 20020118 > /dev/null
amrestore: 0: skipping start of tape: date 20020118 label DAEDag10
amrestore: 1: skipping daeserver._export_p4.20020118.1
amrestore: 2: skipping daeserver._export_p3.20020118.2
amrestore: 3: restoring daeserver._export_p2.20020118.2
gzip: stdin: decompression OK, trailing garbage ignored
[amanda@daeserver amanda]$