<?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 error in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-error/m-p/2579443#M31609</link>
    <description>What is your 'device_tape_name' ?&lt;BR /&gt;is a a 'rewind' device ?&lt;BR /&gt;Re-wind the tape (mt -f device&amp;gt; rew) and try to read with cpio again &lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Rainer</description>
    <pubDate>Fri, 14 Sep 2001 08:31:28 GMT</pubDate>
    <dc:creator>Rainer von Bongartz</dc:creator>
    <dc:date>2001-09-14T08:31:28Z</dc:date>
    <item>
      <title>cpio error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-error/m-p/2579442#M31608</link>
      <description>Hello,&lt;BR /&gt;To backup a given directory i use the following&lt;BR /&gt;command line:&lt;BR /&gt;&lt;BR /&gt;find /working_dir -print | cpio -oc &amp;gt;/device_tape_name&lt;BR /&gt;&lt;BR /&gt;and the backup terminates whitout errors.&lt;BR /&gt;But when trying to list or extract the backuped files with :&lt;BR /&gt;&lt;BR /&gt;cpio -itcv or&lt;BR /&gt;cpio -icv  &lt;BR /&gt;I recieve the following message:&lt;BR /&gt;cpio: unexpected end-of-archive encountered.&lt;BR /&gt;What could be the error i commited ?</description>
      <pubDate>Fri, 14 Sep 2001 07:44:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio-error/m-p/2579442#M31608</guid>
      <dc:creator>karbach</dc:creator>
      <dc:date>2001-09-14T07:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: cpio error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-error/m-p/2579443#M31609</link>
      <description>What is your 'device_tape_name' ?&lt;BR /&gt;is a a 'rewind' device ?&lt;BR /&gt;Re-wind the tape (mt -f device&amp;gt; rew) and try to read with cpio again &lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Rainer</description>
      <pubDate>Fri, 14 Sep 2001 08:31:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio-error/m-p/2579443#M31609</guid>
      <dc:creator>Rainer von Bongartz</dc:creator>
      <dc:date>2001-09-14T08:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: cpio error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-error/m-p/2579444#M31610</link>
      <description>I also use cpio for backups... take a look at the script i use.  there are some differences with the options for cpio as well as i also verify the tape after creation.  hope the information is useful.&lt;BR /&gt;&lt;BR /&gt;# HP BACKUP.SYS  Backs up everything under /&lt;BR /&gt;echo "Starting Backup Routine ...............`date`" &amp;gt; /usr/tmp/bulog&lt;BR /&gt;TERM=vt220; export TERM&lt;BR /&gt;echo "------------------------------------------------" |tee -a /usr/tmp/bulog&lt;BR /&gt;echo "Creating Backup List .................`date`"     |tee -a /usr/tmp/bulog&lt;BR /&gt;cd /&lt;BR /&gt;date &amp;gt; ./datestamp&lt;BR /&gt;find ./datestamp -print &amp;gt; /usr/tmp/backuplist&lt;BR /&gt;find ./ -size +0 -print &amp;gt;&amp;gt; /usr/tmp/backuplist&lt;BR /&gt;NUM=`cat /usr/tmp/backuplist|wc -l`&lt;BR /&gt;echo "------------------------------------------------" |tee -a /usr/tmp/bulog&lt;BR /&gt;echo "Rewinding tape before the write ......`date`"     |tee -a /usr/tmp/bulog&lt;BR /&gt;mt -t /dev/rmt/0m rew&lt;BR /&gt;echo "------------------------------------------------" |tee -a /usr/tmp/bulog&lt;BR /&gt;echo "Writing to tape .....................`date`"      |tee -a /usr/tmp/bulog&lt;BR /&gt;cat /usr/tmp/backuplist | cpio -ocuvB &amp;gt; /dev/rmt/0m&lt;BR /&gt;echo "$NUM file(s) should be written to tape..."        |tee -a /usr/tmp/bulog&lt;BR /&gt;echo "Write Complete! .......................`date`"    |tee -a /usr/tmp/bulog&lt;BR /&gt;echo "------------------------------------------------" |tee -a /usr/tmp/bulog&lt;BR /&gt;echo "Rewinding tape before the verify ......`date`"    |tee -a /usr/tmp/bulog&lt;BR /&gt;mt -t /dev/rmt/0m rew&lt;BR /&gt;echo "------------------------------------------------" |tee -a /usr/tmp/bulog&lt;BR /&gt;echo "Verifying Tape Backup .................`date`"    |tee -a /usr/tmp/bulog&lt;BR /&gt;cpio -ictBv &amp;lt; /dev/rmt/0m &amp;gt; /usr/tmp/tapelist&lt;BR /&gt;NUM2=`cat /usr/tmp/tapelist|wc -l`&lt;BR /&gt;echo "**************************************"           |tee -a /usr/tmp/bulog&lt;BR /&gt;echo "$NUM file(s) should write to tape..."             |tee -a /usr/tmp/bulog&lt;BR /&gt;echo "$NUM2 files verified from tape..."                |tee -a /usr/tmp/bulog&lt;BR /&gt;echo "**************************************"           |tee -a /usr/tmp/bulog&lt;BR /&gt;if [ "$NUM" != "$NUM2" ]&lt;BR /&gt;then&lt;BR /&gt;  echo "WARNING!!! Tape Verification has failed "       |tee -a /usr/tmp/bulog&lt;BR /&gt;  echo "Please notify R&amp;amp;D Systems immediately   "       |tee -a /usr/tmp/bulog&lt;BR /&gt;fi&lt;BR /&gt;echo "Tape Verification Complete ............`date`"    |tee -a /usr/tmp/bulog&lt;BR /&gt;echo "------------------------------------------------" |tee -a /usr/tmp/bulog&lt;BR /&gt;echo "Taking tape drive offline .............`date`"    |tee -a /usr/tmp/bulog&lt;BR /&gt;mt -t /dev/rmt/0m offline &amp;amp;&lt;BR /&gt;echo "BACKUP COMPLETE! ......................`date`"    |tee -a /usr/tmp/bulog&lt;BR /&gt;echo "------------------------------------------------" |tee -a /usr/tmp/bulog&lt;BR /&gt;echo "Backup log is /usr/tmp/bulog"                     |tee -a /usr/tmp/bulog&lt;BR /&gt;echo "Backup list is /usr/tmp/backuplist"               |tee -a /usr/tmp/bulog&lt;BR /&gt;echo "Tape Verify list is /usr/tmp/tapelist"            |tee -a /usr/tmp/bulog</description>
      <pubDate>Fri, 14 Sep 2001 12:26:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio-error/m-p/2579444#M31610</guid>
      <dc:creator>Edward Alfert_2</dc:creator>
      <dc:date>2001-09-14T12:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: cpio error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-error/m-p/2579445#M31611</link>
      <description>Your commands should work fine , I've tried the exact same thing here on a 10.20 and also 11.00 system and it worked fine to a DDS drive (/dev/rmt/0m). Its a good point about the rewind option , but if that is OK then you make have a faulty drive or bad tape. Have you tried a different tape?</description>
      <pubDate>Fri, 14 Sep 2001 12:38:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio-error/m-p/2579445#M31611</guid>
      <dc:creator>John Waller</dc:creator>
      <dc:date>2001-09-14T12:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: cpio error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-error/m-p/2579446#M31612</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;are you really certain that you did not use any kind of&lt;BR /&gt;buffering on writing or reading, that being the most&lt;BR /&gt;common reason for that message in my experience.&lt;BR /&gt;&lt;BR /&gt;do you get the same message, when you you try&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/rmt/cYtYd0 obs=64k | cpio -ictv&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Wodisch</description>
      <pubDate>Fri, 14 Sep 2001 20:04:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio-error/m-p/2579446#M31612</guid>
      <dc:creator>Wodisch</dc:creator>
      <dc:date>2001-09-14T20:04:37Z</dc:date>
    </item>
  </channel>
</rss>

