Amanda-Users

Restore from tape (not using Amanda) syntax

2002-09-25 08:01:12
Subject: Restore from tape (not using Amanda) syntax
From: Gordon Cormack <gcormack AT powerserve.com DOT au>
To: amanda-users AT amanda DOT org
Date: Wed, 25 Sep 2002 21:38:55 +1000

Hi Peoples,

I'm trying to dump from an Amanda tape onto the hard-drive by not using Amanda. This is probably a "you don't know how to use tar properly" question but:

        #mt -f /dev/rmt/0n status
        Vendor 'SONY    ' Product 'SDX-300C       ' tape drive:
        sense key(0x6)= Unit Attention   residual= 0   retries= 0
        file no= 0   block no= 0

        #mt -f /dev/rmt/0n rewind

I'm obviously doing something wrong here cause the command:
        #dd if=/dev/rmt/0n bs=32k skip=1 | /usr/local/bin/tar -cv -f /export/output.tar
        /usr/local/bin/tar: Cowardly refusing to create an empty archive

The tape only has about 2GB of compressed data on it so it's not huge...

Any ideas?

Thanks,
Gordon.