> But why exited Amanda by using the commands
> amrestore -p /dev/nst0 gretel | tar -xvf - ./usr/local/sbin/exec  or
> amrestore -p /dev/nst0 | tar -xvf - ./usr/local/sbin/exec
> after searching the first dump on tape?
> 
> In the first case Amanda should search in all "gretel"-dumps,
> in the second case in all dumps on tape!?
> As I remember, in earlier Amanda-versions this was the normal
> behaviour, and it's described in the manpages!

What ancient version do you use? "man amrestore" (2.4.2p2) says:

OPTIONS
       -p     Pipe  output.   The  first matching backup image is
              sent to standard output, which is normally  a  pipe
              to restore or tar, then amrestore quits.  It may be
              run again to continue selecting backups to process.
              Make sure you specify the no-rewind tapedevice when
              doing this.

              Note: restore may report "short read"  errors  when
              reading from a pipe.  Most versions of restore sup�
              port a blocking factor option to let  you  set  the
              read  block  size, and you should set it to 2.  See
              the example below.

Reply via email to