Mandi! Bill Arlofski via Bacula-users In chel di` si favelave... > Sounds like an interesting project. :)
Cool! My script simply enquire device for serial of the unit, and then if not exist create the key with: "$STENC" -g 256 -k $kf -kd \"$pk\" where: kf="$KEYDIR/$HOST-$SERIAL-$BITS-$YEAR.key" pk="$HOST-$SERIAL-$YEAR" then you can load with: "$STENC" -f "$d" -e $MODE -a $a -k "$kf" where $d is the device, $MODE the key mode (mixed, ...) and '$a' is some sort of ''address'', and integer index that have to be determined by trial and error, and seems to change betwen reboot. This is the hardest part of the script, because you have to guess it. Clearly, if you have more tan a tape drive (eg, a library with 2 tapes) it make no sense to create two different key for the two drive (if you swap tapes, no one will read them). Probably a link will suffice, for that: ln -s "$KEYDIR/$HOST-$SERIAL-$BITS-$YEAR.key" "$KEYDIR/$HOST-$SERIAL2-$BITS-$YEAR.key" -- _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users