We have an autoloader tape drive with 24 tapes, and a backup script that uses the dump command to write the backup to tape. When the end of the tape is reached it uses dump -f to run a script that switches to the next tape. This is all running on an Ubuntu 10.04 server.
We're trying to figure out how to use restore the same way. How can we run a restore automatically to restore the contents of all the tapes to disk somewhere? If we load the first tape in the set into the drive with mt, is there a command that can restore all contents of that dump job and automatically handle switching tapes without waiting for us to give it the next in the set?