Hi, John:
> Where is the tape positioned? There is an Amanda label on the front of
> the tape before the first backup image. So you need to skip over that
> first with "mt fsf" if the tape is rewound.
Yup, that worked! Here's output:
# mt rewind
# mt fsf
# dd if=/dev/rmt/0mn bs=32k skip=1 | ufsrestore -tvbf 2 -
Verify volume and initialize maps
Extract directories from tape
Initialize symbol table.
Dump date: Mon Nov 27 15:24:45 2000
Dumped from: Mon Nov 20 14:57:37 2000
Level 1 dump of /usr/samba on emerald:/dev/dsk/c0t12d0s3
Label: none
dir 2 .
dir 423936 ./var
dir 11789 ./var/locks
leaf 11793 ./var/locks/browse.dat
leaf 11792 ./var/locks/STATUS..LCK
leaf 423938 ./var/log.smb
leaf 423950 ./var/log.tspc39ab
18+0 records in
18+0 records out
But why do you have to use both "mt fsf" and "skip=1"? Does "mt fsf"
skip the volume label? And then "skip=1" skips over the first block, which
contains the amanda file header? Guess I've been conditioned by years
of using just ufsdump/ufsrestore....
>
> Also, are you just doing some low level testing? In other words, is
> there are reason you're not using amrestore or amrecover?
>
Kind of a worst-case scenario....we want to make sure we can use low-level,
standard Unix utilities to restore files/directories. With that dd/ufsrestore
combo, it looks like we can access files on an amanda tape using an
Exabyte attached to another Unix server - and that Unix server doesn't
need to run amanda utilities.
> You should be able to use:
>
> su <amanda-user> -c "amadmin Daily find <client-host> <client-fs>"
>
> to find out what tape and what file on that tape contain the backup
> image for filesystem "client-fs" on "client-host".
O.K., great, that worked, too. As amanda user, I ran that command and got
this output:
amadmin Daily find emerald /usr/samba
Scanning /disk6/amanda...
date host disk lv tape or file file status
2000-11-20 emerald /usr/samba 0 DailySet101 1 OK
2000-11-24 emerald /usr/samba 1 DailySet103 1 OK
2000-11-27 emerald /usr/samba 1 DailySet104 1 OK
I would use this data to track down a tape for a backup of /usr/samba,
right?
Thanks for all the info and clarifications!
Lisa
----------------------------------------------------------
Lisa M. Becktold - [EMAIL PROTECTED], (410) 293-6480
United States Naval Academy - CADIG
590 Holloway Road, Rickover Hall, Annapolis, MD 21402-5000