<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: CPIO and logging copied files in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/cpio-and-logging-copied-files/m-p/3038398#M5959</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;This is ok. The backup is made. The problem is I do not have a list of all the files that are on the tape...&lt;BR /&gt;&lt;BR /&gt;I get success if I try to restore the backup but I do not know what files are in this tape and I and do not want in my script after the command listed that takes 2 hours running the tape having to do "cpio -ivt &amp;lt; /dev/st0 &amp;gt; /files_ok.txt and more 2 hours running the tape listing the files on it. I want to do it in just one time.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Mauro</description>
    <pubDate>Thu, 31 Jul 2003 16:11:46 GMT</pubDate>
    <dc:creator>Mauro_8</dc:creator>
    <dc:date>2003-07-31T16:11:46Z</dc:date>
    <item>
      <title>CPIO and logging copied files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cpio-and-logging-copied-files/m-p/3038394#M5955</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I want to backup some files and while each file is copied to tape, the file name is appended in a log file ( /files_ok.txt ) and if an error occurs it is appended in an error file, called /tmp/log.err. How can I do it ?&lt;BR /&gt;&lt;BR /&gt;I try:&lt;BR /&gt;find / -depth -print | cpio -ovB -H newc 2&amp;gt;&amp;gt;/tmp/log.err &amp;gt;/dev/st0&lt;BR /&gt;&lt;BR /&gt;but the list of files goes to /tmp/log.err. It??s so strange because I think it??s a stderr output ( 2&amp;gt;&amp;gt; ). I think I am having problems because I have to redirect the cpio output to tape but I just want to list the files that cpio made backup.&lt;BR /&gt;&lt;BR /&gt;Any ideas ?&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Mauro&lt;BR /&gt;</description>
      <pubDate>Thu, 31 Jul 2003 13:08:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cpio-and-logging-copied-files/m-p/3038394#M5955</guid>
      <dc:creator>Mauro_8</dc:creator>
      <dc:date>2003-07-31T13:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: CPIO and logging copied files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cpio-and-logging-copied-files/m-p/3038395#M5956</link>
      <description>Its pretty common practice to use ls for find commands to direct certain files to tape.&lt;BR /&gt;&lt;BR /&gt;If you want a list of what gets to tape somewhere else consider this.&lt;BR /&gt;&lt;BR /&gt;commandline | tee /tmp/tapelist.log&lt;BR /&gt;&lt;BR /&gt;This will have the output go two places, to tape as directed and a copy goes to the file you define.&lt;BR /&gt;&lt;BR /&gt;tee is a very nice little tool.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 31 Jul 2003 13:18:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cpio-and-logging-copied-files/m-p/3038395#M5956</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-07-31T13:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: CPIO and logging copied files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cpio-and-logging-copied-files/m-p/3038396#M5957</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The problem is when I did "find / -depth -print | cpio -ovB -H newc 2&amp;gt;&amp;gt;/tmp/log.err &amp;gt;/dev/st0" I received no messages in my terminal (tty), so I can not use tee... If I use tee it creates a empty file.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Mauro &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 31 Jul 2003 13:40:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cpio-and-logging-copied-files/m-p/3038396#M5957</guid>
      <dc:creator>Mauro_8</dc:creator>
      <dc:date>2003-07-31T13:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: CPIO and logging copied files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cpio-and-logging-copied-files/m-p/3038397#M5958</link>
      <description>I ran your command in a script like this:&lt;BR /&gt;&lt;BR /&gt;find / -depth -print | cpio -ovB -H newc 2&amp;gt;&amp;gt;/tmp/log.err &amp;gt; find.results&lt;BR /&gt;&lt;BR /&gt;I got a lot of results very quickly.&lt;BR /&gt;&lt;BR /&gt;Is your environment(TERM, etc) normal when you are having these null results?&lt;BR /&gt;&lt;BR /&gt;How about this:&lt;BR /&gt;&lt;BR /&gt;find / -dept -print | cpio -ovB -H newc &amp;gt; /dev/st0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 31 Jul 2003 14:33:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cpio-and-logging-copied-files/m-p/3038397#M5958</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-07-31T14:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: CPIO and logging copied files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cpio-and-logging-copied-files/m-p/3038398#M5959</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;This is ok. The backup is made. The problem is I do not have a list of all the files that are on the tape...&lt;BR /&gt;&lt;BR /&gt;I get success if I try to restore the backup but I do not know what files are in this tape and I and do not want in my script after the command listed that takes 2 hours running the tape having to do "cpio -ivt &amp;lt; /dev/st0 &amp;gt; /files_ok.txt and more 2 hours running the tape listing the files on it. I want to do it in just one time.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Mauro</description>
      <pubDate>Thu, 31 Jul 2003 16:11:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cpio-and-logging-copied-files/m-p/3038398#M5959</guid>
      <dc:creator>Mauro_8</dc:creator>
      <dc:date>2003-07-31T16:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: CPIO and logging copied files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cpio-and-logging-copied-files/m-p/3038399#M5960</link>
      <description>find / -dept -print | cpio -ovB -H newc &amp;gt; /dev/st0 | tee /tmp/filelist.log&lt;BR /&gt;&lt;BR /&gt;Maybe though the | tee should be before the  | cpio&lt;BR /&gt;&lt;BR /&gt;Then just the filelist will go to tee and the filelist will be processed by the cpio command.&lt;BR /&gt;&lt;BR /&gt;If I have time, I'll try and play with this on a linux box tonight.  &lt;BR /&gt;&lt;BR /&gt;If you are in a hurry, you can try it sooner.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 31 Jul 2003 19:33:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cpio-and-logging-copied-files/m-p/3038399#M5960</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-07-31T19:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: CPIO and logging copied files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cpio-and-logging-copied-files/m-p/3038400#M5961</link>
      <description>Hello!&lt;BR /&gt;&lt;BR /&gt;Yes, you should add the "| tee" after find&lt;BR /&gt;command and the output of tee pipe to the&lt;BR /&gt;cpio command.&lt;BR /&gt;Just like SEP wrote.&lt;BR /&gt;&lt;BR /&gt;Caesar</description>
      <pubDate>Thu, 31 Jul 2003 19:38:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cpio-and-logging-copied-files/m-p/3038400#M5961</guid>
      <dc:creator>Caesar_3</dc:creator>
      <dc:date>2003-07-31T19:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: CPIO and logging copied files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cpio-and-logging-copied-files/m-p/3038401#M5962</link>
      <description>This is the way I do it:&lt;BR /&gt;&lt;BR /&gt;find . -print0 | cpio -0ovC10240 -H newc -O /dev/nst0 2&amp;gt; output.log &lt;BR /&gt;&lt;BR /&gt;Use '-O' to output to the device, rather than use STDOUT to make less confusion.  Unfortunately as errors also come out on STDERR, there's no real way to separate them.  The STDOUT of cpio however does have some 'information' messages, depending on the flag syou use.&lt;BR /&gt;&lt;BR /&gt;much fun ;)</description>
      <pubDate>Thu, 31 Jul 2003 23:19:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cpio-and-logging-copied-files/m-p/3038401#M5962</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2003-07-31T23:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: CPIO and logging copied files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cpio-and-logging-copied-files/m-p/3038402#M5963</link>
      <description>Thanks !&lt;BR /&gt;&lt;BR /&gt;It??s working now, with tee.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Mauro</description>
      <pubDate>Fri, 01 Aug 2003 15:29:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cpio-and-logging-copied-files/m-p/3038402#M5963</guid>
      <dc:creator>Mauro_8</dc:creator>
      <dc:date>2003-08-01T15:29:13Z</dc:date>
    </item>
  </channel>
</rss>

