Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!sdd.hp.com!hp-pcd!hpfcso!rjn From: rjn@hpfcso.FC.HP.COM (Bob Niland) Newsgroups: comp.sys.hp Subject: Re: Using the DDS drive Message-ID: <7370316@hpfcso.FC.HP.COM> Date: 21 Feb 91 21:54:03 GMT References: <1991Feb14.233141.10571@objy.com> Organization: Hewlett-Packard/FSY Ft.Collins,CO,USA Lines: 56 re: > I would appreciate some help from anyone who has experience using the > HP DDS drive with standard UNIX backup utilities, e.g. tar and cpio. > I can't seem to write CPIO files to the drive no matter what I do. Working example: #SCSI Device File: crw-rw-rw- 2 root other 54 0x0d0403 Feb 18 03:17 /dev/rdat #Fragments of /etc/backup. Changes/additions are > flagged. #(/etc/datdest contains "/dev/rdat") ... destfile="/etc/datdest" # file containing backup destination ... ... # Do the backup: if [ "${aflag:-yes}" = "yes" ] # doing an archive then # remember the date/time backup started touch ${archive}.x fi echo "s `date` `uname -r` $aecho" >>$backuplog cd / > mt -t $dest rew { find $backupdirs $aflag -hidden -print | > cpio -ocBx > $dest } 2>>$backuplog # log stderr only. echo "f `date`" >>$backuplog if [ -f ${archive}.x ] # did an archive then mv ${archive}.x $archive # save the new archive time fi # Finish up after backup: echo "\007Backup complete at `date`" > mt -t $dest eof 2 > mt -t $dest offl & touch $remind # make reminder file. Comments: * Device file is BSD personaility w/no-rewind-on-close. * Script therefore starts with a rewind to be on the safe side. * Two EOFs written after archive to prevent reading old junk on restore from used tape. * Final rewind-offline to eject tape (SCSI only). Regards, Hewlett-Packard Bob Niland Internet: rjn@FC.HP.COM 3404 East Harmony Road UUCP: [hplabs|hpfcse]!hpfcrjn!rjn Ft Collins CO 80525-9599 Brought to you by Super Global Mega Corp .com