出于多种原因,我一直在试图findencryption备份磁带的方法。 我目前正在为我的备份运行Bacula,并且它支持基于驱动器的encryption,我必须调用脚本或在驱动器中设置密钥。
如何在Debian Linux的磁带机上设置encryption选项?
stenc项目应该是有用的(没有亲自testing过) – http://sourceforge.net/projects/stenc/
我已经按照sendmoreinfo的build议testing了stenc,并且使用了LTO-6驱动器。
用法:
插入磁带并询问磁带机的设置:
# stenc -f /dev/nst0 --detail
生成您的256位密钥并存储它:
# stenc -g 256 -k /root/myaes.key -kd Bobs_month_key
将密钥加载到LTO磁带机中。 使用--ckod会在磁带popup后忘记密钥。
# stenc -f /dev/nst0 -e on -k /root/myaes.key -a 1 --ckod
确认现在驱动器启用了AES:
# stenc -f /dev/nst0 --detail Status for /dev/nst0 -------------------------------------------------- Device Mfg: TANDBERG Product ID: LTO-6 HH Product Revision: 3519 Drive Encryption: on Drive Output: Decrypting Unencrypted data not outputted Drive Input: Encrypting Protecting from raw read Key Instance Counter: 4 Encryption Algorithm: 1 Drive Key Desc.(uKAD): Bobs_month_key Volume Encryption: Encrypted and able to decrypt Protected from raw read Volume Algorithm: 1
我为Gentoo Linux准备了一个软件包。