extracting a specific file from tape using dd

From: Ramaswamy, Satish (Satish.Ramaswamy@uscellular.com)
Date: Fri Dec 06 2002 - 15:26:17 EST


gurus, i'm writing to tape using the dd command (i'll change the script to
use cpio instead henceforth). the
reason i do this, is i tar a bunch of files, then gzip them and write to tape.
i didn't want to tar them again and write to tape.)

the question is how do i retrieve a specific file from tape. i don't wish
for all the files that i've written so far since i don't have the disk space.

the command is use to write to tape is this dd if=/Backup/OMP$DATE.tar.gz
of=$TAPE

the values are obtained from the script

DATE=`date '+%Y_%m_%d'`
PATH1=/u01/apps/WatchMark/FlexPM/5.1/OMP
TAPE=/dev/rmt/0n
#changed the TAPE value from 0cbn (blocking factor 126 * 512) to 0n 12/05/02
export TAPE
export PATH1
export TAPE
mt eom
tar cvf /Backup/OMP$DATE.tar $PATH1/*.log
gzip -N /Backup/OMP$DATE.tar

mt -f /dev/rmt/0cbn nbsf 1 (
now, i tried dd if=/dev/rmt/0cbn bs=64512 (since the c implies a blocking
factor of 126) of=/Backup but this is a directory and of expects a filename.

thanks.

satish
_______________________________________________
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:25:26 EDT