"Bernhard R. Erdmann" wrote:
> > 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:
I am using 2.4.2p2; i've told it in my email before.
> 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.
Ah - this makes sense. (I should read the whole manpage :-)) )
Now I see why to use /dev/nst0 instead of /dev/st0.
I thought it was only relevant for amdump.
But what about the following text given by "man amrestore"?
If diskname is not specified, all backups on the tape for
the previous hostname are candidates. If datestamp is not
specified, all backups on the tape for the previous host
name and diskname are candidates. If no hostname,
diskname or datestamp are specified, every backup on the
tape is a candidate.
Hostname, diskname and datestamp are regular expressions
that may match more than one backup. For example, if
diskname is "rz[23]a", it would match disks rz2a and rz3a.
Hostname, diskname or datestamp may be an empty string
("") to match every host, disk or date (this is just an
abbreviation for ".*").
This describes the behaviour I've told before, or not?
Greetings,
Jens