<?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/2683544#M902909</link>
    <description>Yes you can.&lt;BR /&gt;cpio -icv &lt;FILE name=""&gt; &lt;/FILE&gt;&lt;BR /&gt;Sandip</description>
    <pubDate>Thu, 14 Mar 2002 19:04:54 GMT</pubDate>
    <dc:creator>Sandip Ghosh</dc:creator>
    <dc:date>2002-03-14T19:04:54Z</dc:date>
    <item>
      <title>cpio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio/m-p/2683543#M902908</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;Can I cpio a file from /dev/rmt/0m and place it in the dir of my choice, if so what could the command be.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Many Thanks&lt;BR /&gt;Chris</description>
      <pubDate>Thu, 14 Mar 2002 19:01:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio/m-p/2683543#M902908</guid>
      <dc:creator>Chris Frangandonis</dc:creator>
      <dc:date>2002-03-14T19:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: cpio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio/m-p/2683544#M902909</link>
      <description>Yes you can.&lt;BR /&gt;cpio -icv &lt;FILE name=""&gt; &lt;/FILE&gt;&lt;BR /&gt;Sandip</description>
      <pubDate>Thu, 14 Mar 2002 19:04:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio/m-p/2683544#M902909</guid>
      <dc:creator>Sandip Ghosh</dc:creator>
      <dc:date>2002-03-14T19:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: cpio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio/m-p/2683545#M902910</link>
      <description>Hi Chris,&lt;BR /&gt;&lt;BR /&gt;Check this out:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://us-support2.external.hp.com/cki/bin/doc.pl/sid=4de0f0f71bb831ea7a/screen=ckiDisplayDocument?docId=200000048403550" target="_blank"&gt;http://us-support2.external.hp.com/cki/bin/doc.pl/sid=4de0f0f71bb831ea7a/screen=ckiDisplayDocument?docId=200000048403550&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Shiju&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Mar 2002 19:14:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio/m-p/2683545#M902910</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2002-03-14T19:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: cpio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio/m-p/2683546#M902911</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;The answer is that it depends. You need to first do a cpio -icvt &amp;lt; /dev/rmt/0m to see if the files were backed up with absolute pathnames. If the pathnames begin with a / then restoring to another directory is difficult but if the cpio was made with relative paths the the above solution will work.&lt;BR /&gt;&lt;BR /&gt;If absolute paths were used, let us know and there are ways to do that as well.&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Mar 2002 19:17:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio/m-p/2683546#M902911</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-03-14T19:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: cpio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio/m-p/2683547#M902912</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Also, change the directory first and then restore the files:&lt;BR /&gt;&lt;BR /&gt;# cd /home&lt;BR /&gt;# cpio -idumv &amp;lt; /dev/rmt/0m&lt;BR /&gt;&lt;BR /&gt;This may help you:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://us-support2.external.hp.com/cki/bin/doc.pl/sid=4de0f0f71bb831ea7a/screen=ckiDisplayDocument?docId=200000048117871" target="_blank"&gt;http://us-support2.external.hp.com/cki/bin/doc.pl/sid=4de0f0f71bb831ea7a/screen=ckiDisplayDocument?docId=200000048117871&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Shiju&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Mar 2002 19:18:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio/m-p/2683547#M902912</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2002-03-14T19:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: cpio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio/m-p/2683548#M902913</link>
      <description>If you use the GNU version of cpio (I've still made it temporary available on &lt;A href="http://home.hccnet.nl/h.m.brand/ncpio)" target="_blank"&gt;http://home.hccnet.nl/h.m.brand/ncpio)&lt;/A&gt; you can use the option --no-absolute-filenames to achieve what you want.&lt;BR /&gt;&lt;BR /&gt;       --no-absolute-filenames&lt;BR /&gt;           In copy-in mode, create all files relative to the current&lt;BR /&gt;           directory, even if they have an absolute file name in the&lt;BR /&gt;           archive.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# cd /tmp/temp&lt;BR /&gt;# ncpio -iuvdm --no-absolute-filenames &lt;BR /&gt;Job done :)</description>
      <pubDate>Thu, 14 Mar 2002 20:07:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio/m-p/2683548#M902913</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2002-03-14T20:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: cpio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio/m-p/2683549#M902914</link>
      <description>If it is one or a few files and you can do it interactively, then you can do it by (also) specifying the "r" (rename) option:&lt;BR /&gt;&lt;BR /&gt;$ ll /tmp/passwd&lt;BR /&gt;/tmp/passwd not found&lt;BR /&gt;$ echo '/etc/passwd' | cpio -o &amp;gt;junk.cpio&lt;BR /&gt;29 blocks&lt;BR /&gt;$ cpio -ir '/etc/passwd' &lt;JUNK.CPIO&gt;&lt;/JUNK.CPIO&gt;Rename &lt;BR /&gt;/tmp/passwd&lt;BR /&gt;29 blocks&lt;BR /&gt;$ ll /tmp/passwd&lt;BR /&gt;-r--r--r--   1 franks     ftp_group    14319 Mar 15 14:38 /tmp/passwd&lt;BR /&gt;$ &lt;BR /&gt;&lt;BR /&gt;If it is for many files or/and non-interactively, then see pax(1). pax(1) can read (and write) cpio (and tar) archives.</description>
      <pubDate>Fri, 15 Mar 2002 13:38:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio/m-p/2683549#M902914</guid>
      <dc:creator>Frank Slootweg</dc:creator>
      <dc:date>2002-03-15T13:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: cpio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio/m-p/2683550#M902915</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;Thanks a lot for all your help, much appreciated.&lt;BR /&gt;Sorry about the delay, my PC got struck by lightning and took time to fix.&lt;BR /&gt;&lt;BR /&gt;Thanks once again&lt;BR /&gt;Chris</description>
      <pubDate>Wed, 17 Apr 2002 16:34:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio/m-p/2683550#M902915</guid>
      <dc:creator>Chris Frangandonis</dc:creator>
      <dc:date>2002-04-17T16:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: cpio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio/m-p/2683551#M902916</link>
      <description>Maybe that was God telling you to use a UNIX W/S  ;^)&lt;BR /&gt;&lt;BR /&gt;tongue firmly in cheek,&lt;BR /&gt;Jeff</description>
      <pubDate>Wed, 17 Apr 2002 16:52:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio/m-p/2683551#M902916</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2002-04-17T16:52:21Z</dc:date>
    </item>
  </channel>
</rss>

