CPIO question

"Collins, Eric S." <[email protected]> Thu, 13 Feb 2003 12:53:03 -0600
Newsgroups gmane.linux.redhat.release.guinness
Message-ID <CFC80EECB4A4D6118DF800D0B7C9B52B038E9C@ntcr1107.apacteleservices.com>
Hi,
 
        Have a quick question. I'm rewriting a backup script for some of our
SCO Openserver boxes. I want to use cpio to store the data to my DAT drive,
but I would also like to redirect the output of the find to a logfile. I've
tried, for the line in question:

dte=`date +%a` #fyi on this var
 
find / -print|cpio -vocBm > /dev/rStp0 |tee -a /u/backup/bup.files.$dte
#will backup to the DAT, but doens't log to the file
 
find / -print|tee find / -print|tee /u/backup/bup.files.$dte|cpio -vocBm >
/dev/rStp0 #will backup to DAT - doesn't write to log file
 
tee -a /u/backup/bup.files.$dte|find / -print|cpio -vocBm > /dev/rStp0 #this
would be for input, but I figured what the heck.
 
    I think by now someone, I hope, would recognize the error of my ways.
Any suggestions are appreciated.
 
 
Thanks,
Eric