How to "specify next volume" with ufsrestore

From: Doug Floer (dfloer@topsoft.ca)
Date: Mon Aug 12 2002 - 14:10:52 EDT


We're trying to implement a spot check of a ufsdump tape. We want to
restore a specific file each time and will know exactly where it is on
tape each time. There will never be a situation when there is more than
one volume. We want to have this script executed from cron in the
background without intervention but can't seem to get by the "Specify
next volume #" prompt. Since we'll always specify volume 1, we thought
something like this would work:

# echo 1 | ufsdump xvsf 4 /dev/rmt/0 path/file

Unfortunately, ufsdump ignores stdin and waits for terminal
confirmation. Manpage doesn't show an option to specify volume number
on the command line. Does anyone know how to get around this?

Thanks,
Doug
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:24:45 EDT