Hello!

I've got a problem with restoring files from a special disk.

My Amanda installation:
Amanda version 2.4.2p2 on SuSE-Linux 6.3 (i386) - Kernel 2.2.19.
For backing up and restoring I am using Gnutar.

My disklist looks as follows (the part of the requested disk):

# Gretel:
gretel      /                                  gretel
gretel      /opt/informix                      gretel
gretel      /usr2                              gretel
gretel      /usr5                              gretel

The (requested) dumptype in amanda.conf:

# dumptypes
define dumptype global {
    comment "Global definitions"
    compress none
    priority high
    # strategy noinc
    index yes
    program "GNUTAR"
}

define dumptype gretel {
    comment "remote gretel"
    global
    exclude list "/usr/local/var/amanda/exclude.gretel"
}

The filesystem is mounted as follows:

/dev/rd/c0d0p1 on / type ext2 (rw)
proc on /proc type proc (rw)
/dev/rd/c0d0p3 on /opt type ext2 (rw)
/dev/rd/c0d0p5 on /usr2 type ext2 (rw)
/dev/rd/c0d0p6 on /usr5 type ext2 (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=0620)

I want to restore the file usr/local/sbin/exec, which is mounted
on "root" ("/").

For that i'm using the following command:

amrestore -p /dev/st0 gretel / | tar -xvf - ./usr/local/sbin/exec

Amanda answers:

amrestore:   0: skipping start of tape: date 20010514 label
Wochensicherung.Woche2
amrestore:   1: restoring gretel._opt_informix.20010513.0
tar: ./usr/local/sbin/exec: Not found in archive
tar: Error exit delayed from previous errors

Amanda wasn't looking in the right disk!

If i do the command without the diskname, i get the same answer:
# amrestore -p /dev/st0 gretel | tar -xvf - ./usr/local/sbin/exec

amrestore:   0: skipping start of tape: date 20010514 label
Wochensicherung.Woche2
amrestore:   1: restoring gretel._opt_informix.20010513.0
tar: ./usr/local/sbin/exec: Not found in archive
tar: Error exit delayed from previous errors

So Amanda won't looking for the right disk. She is looking in the first
disk on tape (belonging to the requested Host) and exit then.
But as documented Amanda should looking for the file in all disks
belonging
to this host!

At last i tried to do a restore without giving host- or diskname to
Amrestore;
the same result:
amrestore -p /dev/st0 | tar -tvf - ./usr/local/sbin/exec

amrestore:   0: skipping start of tape: date 20010514 label
Wochensicherung.Woche2
amrestore:   1: restoring gretel._opt_informix.20010513.0
tar: ./usr/local/sbin/exec: Not found in archive
tar: Error exit delayed from previous errors

In this case Amanda should search for the file in all hosts and disks on
tape.
But she doesn't! Can you help me?

Please reply to me directly, because i'm not subscribed in the list
anymore.

Greetings,
Jens Krause


Reply via email to