Scripting a dump

Soybomb

Diamond Member
Jun 30, 2000
9,506
2
81
So I've got a freebsd box with an Archive Python 28849 (or something roughly close to that) tape drive on it. Its a changer witha 4 tape cartridge but getting up there in age. I've tried compiling the kernel with chio device support but its never detetected as anything other than the a drive at rsa0 so I can't use any of the chio tools on it. I'd like to script a dump to it though that will require a tape change. If I issue "mt offline" it will load the next tape in the cartridge. Is there a way I can write the script so that when dump does:

DUMP: End of tape detected
DUMP: Closing /dev/nrsa0
DUMP: Change Volumes: Mount volume #2
DUMP: Is the new volume mounted and ready to go?: ("yes" or "no") yes

it will change to the next tape and then continue?

If anyone knows any really good links to pages involving using dump and getting a better understanding of how to rewrind and fast forward records and files, etc I'd like to see it. I'm still trying to piece this together into something decent :D