Detecting that tape cleaning is needed
I'm currently writing a bash script to do my system backup to tape. Before the script ends I'd like to check the drive to see if it needs cleaning. I just can't find a way to check the cleaning status.
I believe that something with the:
mt status
command should do it (or am I assuming too much?), but I'm having real trouble finding a decent list of all the "General Status Bits" this command returns, so I'm not sure what to look for.
It's a DLT7000 drive if that's relevant.
Any ideas anybody?
|