RE: CPIO question
"Ian Douglas" <[email protected]> Thu, 13 Feb 2003 11:17:42 -0800
| Newsgroups | gmane.linux.redhat.release.guinness |
|---|---|
| Message-ID | <[email protected]> |
MessageYou could make your life simpler and break it into a 2-step process find / -print > /tmp/file.list cat /tmp/file.list | cpio -vocBm > /dev/rStp0 -----Original Message----- From: [email protected] [mailto:[email protected]]On Behalf Of Collins, Eric S. Sent: Thursday, February 13, 2003 10:53 AM To: [email protected] Subject: CPIO question 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