Re: example config for aes-256-ctr and zstd

2022-02-22 Thread Exuvo

Sure go ahead.
I did not know about that repository so i will take a look if there is anything 
i find useful there.

Anton "exuvo" Olsson
   ex...@exuvo.se

On 2022-02-22 14:41, Stefan G. Weichinger wrote:

Am 21.02.22 um 18:55 schrieb Exuvo:
In case anyone is interested i made a post about LTO-5 tapes that includes example configs for amanda that uses aes-256-ctr with password and zstd compression https://www.eevblog.com/forum/general-computing/lto-tape-usage-(modern-tape-drives)/ 


thanks for sharing.

May I maybe add it to the (small) collection here:

https://github.com/stefangweichinger/amanda-helpers

?

For sure you could even file a PR there, if you prefer.



Re: example config for aes-256-ctr and zstd

2022-02-22 Thread Stefan G. Weichinger

Am 21.02.22 um 18:55 schrieb Exuvo:
In case anyone is interested i made a post about LTO-5 tapes that 
includes example configs for amanda that uses aes-256-ctr with password 
and zstd compression 
https://www.eevblog.com/forum/general-computing/lto-tape-usage-(modern-tape-drives)/ 


thanks for sharing.

May I maybe add it to the (small) collection here:

https://github.com/stefangweichinger/amanda-helpers

?

For sure you could even file a PR there, if you prefer.



example config for aes-256-ctr and zstd

2022-02-21 Thread Exuvo

In case anyone is interested i made a post about LTO-5 tapes that includes 
example configs for amanda that uses aes-256-ctr with password and zstd 
compression 
https://www.eevblog.com/forum/general-computing/lto-tape-usage-(modern-tape-drives)/

Main points for the config, these two scripts are called from amanda.

cat encrypt, use with server_encrypt "/whatever/encrypt":
#!/bin/sh

AMANDA_HOME=~amanda
PASSPHRASE=$AMANDA_HOME/.am_passphrase    # required
RANDFILE=$AMANDA_HOME/.rnd
export RANDFILE

if [ "$1" = -d ]; then
    /usr/bin/openssl enc -pbkdf2 -d -aes-256-ctr -salt -pass fd:3 3< 
"${PASSPHRASE}"
else
    /usr/bin/openssl enc -pbkdf2 -e -aes-256-ctr -salt -pass fd:3 3< 
"${PASSPHRASE}"
fi

cat zstd-compression3, use with server_custom_compress 
"/whatever/zstd-compression3 :
#!/bin/sh
if [[ "$1" == "-d" ]]; then
    zstd -dqcf
else
    zstd -qc -3 -T0
fi

--
Anton "exuvo" Olsson
   ex...@exuvo.se