tar multi-tape backup script
change_tape.sh
#!/bin/sh
# after tar complete backup command
# tar -v –create –tape-length=1G –file=/dev/nst24 /usr –new-volume-script=/root/change_tape.sh
# mtx -f /dev/sg28 status | grep Full| awk -F: '{print $1}' | awk '{print $3}' > /root/tapelist.txt
mtx -f /dev/sg28