Same things as a real changer, you must tell it to use slot1.
$amtape <conf> slot 1
$amrestore -p file:/nas1/amanda/vtapes/DailySet1/slots blah
or
$ rm /nas1/amanda/vtapes/DailySet1/slots/data
$ ln -s slot1 /nas1/amanda/vtapes/DailySet1/slots/data
$ amrestore -p file:/nas1/amanda/vtapes/DailySet1/slots blah
btw. amrestore doesn't list, it extract. With -p, it only extract the
first one.
You can use amcheckdump to list.
An 'ls /nas1/amanda/vtapes/DailySet1/slots/slot1' give a list too.
Or 'amadmin <conf> find | grep LABEL'
Jean-Louis
Brandon Metcalf wrote:
How do I list all images on a virtual tape using amrestore? For
example, if I have the following virtual tape setup
$ ls /nas1/amanda/vtapes/DailySet1/slots
data slot11 slot15 slot19 slot22 slot26 slot3 slot6
info slot12 slot16 slot2 slot23 slot27 slot30 slot7
slot1 slot13 slot17 slot20 slot24 slot28 slot4 slot8
slot10 slot14 slot18 slot21 slot25 slot29 slot5 slot9
I can list an image with
$ amrestore -p \
> /nas1/amanda/vtapes/DailySet1/slots/slot1/00013.quercus.sda11.1 blah
amrestore: 0: skipping quercus.sda11.20090527.1
But how to I list all images on the virtual tape in slot1? According
to the man page for amrestore I can do something like
amrestore -p /dev/nrmt9 blah
for a real tape. What is the equivalent for a virtual tape?
Also, is amrestore the restore tool to use if an Amanda backup server
is unavailable and amrecover is not possible?
Thanks.