|
|
|
|
|
by lubitelpospat
19 days ago
|
|
I was lucky to find you comment about how a lot can be done with tar mt and bash, I was doing something along the lines of trying to fit as much data as possible into a single tape without writing there more than it can be fit into one if possible, would you kind internet stranger happen to have a few wise words pointing me towards the solution or maybe a GitHub gist with an example of something along these lines? Thank you very much upfront! |
|
The general idea was:
- support multiple tapes and duplicate tapes - all tape handling is manual (issue text message "mount tape TX003 please") - first file on tape is a tar file with a tape serial number as the file name. Check this at tape mount time. - to archive: add a file at the end of the tape (mt to position at EOT) - detect write-past EOT with an mt error; this wasn't too reliable tho, mtx might be better. If detected, request next tape. - the database ("directory") is up to you. A text file with tape name, file number and filename allows to use mt to FSF to the file number for retrieval. Or echo this to a distinct file in a directory. How you expect to retrieve should guide you here.
Good luck and happy coding.
This was done on IRIX with bash; probably a couple hundred lines or less.