Am 16.05.2011 16:12, schrieb Stefan G. Weichinger:
> 
> Does amrestore decrypt on the fly when it reads from tape?
> 
> I am scratching my head right now, I have a setup with amcrypt where all
> DLEs should be encrypted and now it seems as if they are all clear text
> on tape ...

Trying to decrypt a restored dump for tests now.


dd if=juno.sgw_enc_test.0  skip=1 | /usr/local/sbin/amcrypt -d

always gives:

bz2aespipe: wrong magic - aborted

Now I added a small debug-line to amaespipe to echo that $n:

------

if test x$1 = x-d ; then
    # decrypt
    n=`/bin/dd bs=10 count=1 2> /dev/null | tr -d -c 0-9a-zA-Z`

echo "DEBUG#$n#END";

    if test x${n} != xbz2aespipe ; then
        echo "bz2aespipe: wrong magic - aborted" >/dev/tty
        exit 1
    fi

------

It then says:

dd if=juno.sgw_enc_test.0  skip=1 | /usr/local/sbin/amcrypt -d
DEBUG#YESrecor#END
bz2aespipe: wrong magic - aborted

Seems as if something has changed in the format used?

Right now I use amanda 3.1.3, I downgraded to compare things.

The DLE has been set up right now and dumped to holdingdisk only for
testing.

I would be happy to get some feedback on this.

Thanks, Stefan

Reply via email to