On Tue, Feb 06, 2007 at 12:38:02PM +0100, Joachim Schipper wrote: > ISTR that there was a piece of software called 'shunt' that would pipe a > specified amount of data into certain commands, then close and re-open > the pipe. This is basically what split does, but writing to a pipe > instead of files.
Good memory: http://www.serice.net/shunt/ It's not in the ports tree, but I will look into what it can do, if it works for me I will report back, and then port it. :) > > Otherwise, try: > > #!/bin/sh > > dump ... | { > i=0; > while dd bs=$BIGNUM count=$BIGNUM2 | \ > mkisofs -stream-media-size $SIZE ... | \ > cdrecord ...; do > echo "Burned CD $i - press return to continue"; > read </dev/tty; > i=$((i+1)) > done > } > > Or some variant on the above that actually works (dd might or might not > be necessary, for example). > > You'd have to try a couple shells to figure out whether you can get by > with /bin/sh, or if you really need ksh. > > Of course, the only way to restore is piping all STREAM.IMG on all those > DVDs into a similar script. AFAIK, STREAM.IMG is limited to 4.0GB, if I go one kilobyte over, the STREAM.IMG created by -stream-media-size will be invalid -- the filesize wraps. So I still need two iso files per disc, as I have now. -stream-media-size cannot be used in any multisession .iso file. I would need to concatenate two separate .isos for burning, then split them for restores. would have to find a way to concatenate two .i