<?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 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio/m-p/3491201#M214931</link>
    <description>cd to desired directory and run &lt;BR /&gt;find . -depth | cpio -pdlmuva /destination_dir&lt;BR /&gt;&lt;BR /&gt;-USA..</description>
    <pubDate>Tue, 22 Feb 2005 17:38:55 GMT</pubDate>
    <dc:creator>Uday_S_Ankolekar</dc:creator>
    <dc:date>2005-02-22T17:38:55Z</dc:date>
    <item>
      <title>cpio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio/m-p/3491197#M214927</link>
      <description>HP-UX 11.11.&lt;BR /&gt;&lt;BR /&gt;I want to copy into only one archive, de contents of a directory and all its subdirectories and files.&lt;BR /&gt;&lt;BR /&gt;What is the sintax to do this using CPIO ?&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Feb 2005 17:25:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio/m-p/3491197#M214927</guid>
      <dc:creator>Tonatiuh</dc:creator>
      <dc:date>2005-02-22T17:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: cpio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio/m-p/3491198#M214928</link>
      <description>cd to desired directory.&lt;BR /&gt;find . -print | cpio -ocv &amp;gt; /xxx/yyy/myfile.cpio&lt;BR /&gt;&lt;BR /&gt;If you want to send it to tape:&lt;BR /&gt;&lt;BR /&gt;find . -print | cpio -ocBv &amp;gt; /dev/rmt/0m</description>
      <pubDate>Tue, 22 Feb 2005 17:30:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio/m-p/3491198#M214928</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-02-22T17:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: cpio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio/m-p/3491199#M214929</link>
      <description>cd to the directory you want to archive then:&lt;BR /&gt;find . -depth -xdev -print | cpio -dump /newmountpoint&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;&lt;BR /&gt;B</description>
      <pubDate>Tue, 22 Feb 2005 17:34:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio/m-p/3491199#M214929</guid>
      <dc:creator>Robert Bennett_3</dc:creator>
      <dc:date>2005-02-22T17:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: cpio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio/m-p/3491200#M214930</link>
      <description>Here's what I commonly use... BUT, you should really read the man pages for both find and cpio and review ...&lt;BR /&gt;cd /source_dir &lt;BR /&gt;find . -xdev -depth | cpio -oBdvmxc &amp;gt; /dev/rmt/0m &lt;BR /&gt;&lt;BR /&gt;This would take all the files in /source_dir and all of the files in all of the subdirectories of /source_dir and put them on the tape drive.  &lt;BR /&gt;&lt;BR /&gt;find options...&lt;BR /&gt;"xdev" -makes sure it doesn't cross mount points.&lt;BR /&gt;"depth" uses a depth first search instead of a breadth first search - recommended.&lt;BR /&gt;&lt;BR /&gt;cpio options&lt;BR /&gt;"o" - output&lt;BR /&gt;"B" - large blocks&lt;BR /&gt;"d" - create directories as needed - probably don't need when making a tape - but I like using it both in and out - so my command looks almost the same on extract... bad excuse I know...&lt;BR /&gt;"v" verbose&lt;BR /&gt;"m" preserve modification times&lt;BR /&gt;"x" preserves special files (think /dev)&lt;BR /&gt;"c" ascii format - b/c I like it better.&lt;BR /&gt;&lt;BR /&gt;Now, to extract from the tape...&lt;BR /&gt;cpio -iBdvmuxc &amp;lt; /dev/rmt/0m ...&lt;BR /&gt;(keep in mind that the "u" is an option for overwriting a newer file with an older one).&lt;BR /&gt;&lt;BR /&gt;HTH</description>
      <pubDate>Tue, 22 Feb 2005 17:37:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio/m-p/3491200#M214930</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2005-02-22T17:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: cpio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio/m-p/3491201#M214931</link>
      <description>cd to desired directory and run &lt;BR /&gt;find . -depth | cpio -pdlmuva /destination_dir&lt;BR /&gt;&lt;BR /&gt;-USA..</description>
      <pubDate>Tue, 22 Feb 2005 17:38:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio/m-p/3491201#M214931</guid>
      <dc:creator>Uday_S_Ankolekar</dc:creator>
      <dc:date>2005-02-22T17:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: cpio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio/m-p/3491202#M214932</link>
      <description>I have created a CPIO file using:&lt;BR /&gt;&lt;BR /&gt;find . -print | cpio -ocv &amp;gt; myfile.cpio&lt;BR /&gt;&lt;BR /&gt;But I cannot recover it. I have tried with:&lt;BR /&gt;&lt;BR /&gt;cpio -idcmv &amp;gt; myfile.cpio&lt;BR /&gt;cpio -idmv &amp;gt; myfile.cpio &lt;BR /&gt;&lt;BR /&gt;Any idea?</description>
      <pubDate>Wed, 23 Feb 2005 18:03:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio/m-p/3491202#M214932</guid>
      <dc:creator>Tonatiuh</dc:creator>
      <dc:date>2005-02-23T18:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: cpio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio/m-p/3491203#M214933</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Check the redirection symbol&lt;BR /&gt;Is it not "&amp;lt;" instead of "&amp;gt;"&lt;BR /&gt;&lt;BR /&gt;Rgds&lt;BR /&gt;Suraj</description>
      <pubDate>Thu, 24 Feb 2005 02:27:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio/m-p/3491203#M214933</guid>
      <dc:creator>Suraj_2</dc:creator>
      <dc:date>2005-02-24T02:27:49Z</dc:date>
    </item>
  </channel>
</rss>

