RE: CPIO question

"Ian Douglas" <[email protected]> Thu, 13 Feb 2003 11:53:35 -0800
Newsgroups gmane.linux.redhat.release.guinness
Message-ID <[email protected]>
MessageThe -v parameter to cpio shoudl set it in verbose mode to re-list the
files that it's archiving, correct?
And if cpio fails, it'll tell you on the screen, I would think. ;o)

-id

  -----Original Message-----
  From: [email protected]
[mailto:[email protected]]On Behalf Of Collins, Eric S.
  Sent: Thursday, February 13, 2003 11:43 AM
  To: '[email protected]'
  Subject: RE: CPIO question


  Ian,
          Thanks for the suggestion. With the twoline method if cpio dumps
would I know where? I would really like to redirect the verbose cpio output,
which I am not attempting in most of my examples.

  I would love to 'find / -print| cpio -vocBm > /dev/rStp0 1>> logfile' .
Then if the backup doesn't complete, I know where it broke. Even if
`cpio -voc > /dev/tape 2>> err.log`  would work I would be less concerned.


  Thanks,
  Eric
    -----Original Message-----
    From: Ian Douglas [mailto:[email protected]]
    Sent: Thursday, February 13, 2003 1:18 PM
    To: [email protected]
    Subject: RE: CPIO question


    You 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