#!/bin/csh -f # restfiles - K. Inscoe (kevin@inscoe.org) - June 21, 2004 # # This script calls resthdr.pl for the supplied saveset. It restores the tar # file in the current directory tree. Use savefiles to create a saveset on a # remote. To use this script first change directory to the base directory of # where you wish to restore from the remote host. # # This script works with the collection of tools at # # http://kevininscoe.com/pub/scripts/savehdr/ # # Get saveset name and directory if ( $#argv < 2 ) then echo "Usage: restfiles saveset savesetdir" echo " " echo "e.g.: restfiles hiro /root" echo " " exit 1 endif set saveset = $argv[1] set savesetdir = $argv[2] ls -l $savesetdir/$saveset.* tar xvf $savesetdir/$saveset.tar /usr/local/bin/resthdr.pl $savesetdir/$saveset.hdr