I would do the following (google for exact commands)
BTW I would personally relabel them, but I use encryption managed by bareos in the tape drive. Also I think bareos tape labels are different than other software, so the label on the media cannot be reused, (I think)
Shutdown the SD, to be safe eject any tapes you don’t want to be purged.
If your library understands mtx us it to get a list of slots.
Make a script that itterates over every tape (if you have two drives split into two lists to speed up)
use mt to weof to each tape and just loop through them.
eg. (verify working from memory)
sg0 is the library
sg1 is the first drive (lsscsi -g) May want to use the /dev/nst* devices instead.
for x in $(cat /tmp/slots)
do
echo “Loading slot $x"
mtx -f /dev/sg0 load $x 0
# write end of file at start of tape taking out old data/label
mt -f /dev/sg1 rewind
mt -f /dev/sg1 weof
mt -f /dev/sg1 rewind
echo “Ejecting drive 0 to slot $x
mtx -f /dev/sg0 unload 0 $x
done
Finally when all done in bareos
update slots
label pool=Scratch barcodes encrypt yes
Verify all my syntax/do a test run with a single tape, it will be slow but should work.
Brock Palen
1 (989) 277-6075
bro...@mlds-networks.com
www.mlds-networks.com
Websites, Linux, Hosting, Joomla, Consulting
> --
> You received this message because you are subscribed to the Google Groups "bareos-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
bareos-users...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/bareos-users/0025900e-29cd-a635-dc6b-fa0e83748941%40dsmz.de.