<?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 help in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-help/m-p/4903441#M404532</link>
    <description>Thats perfect, thanks lads.</description>
    <pubDate>Mon, 23 May 2005 10:29:53 GMT</pubDate>
    <dc:creator>Duffs</dc:creator>
    <dc:date>2005-05-23T10:29:53Z</dc:date>
    <item>
      <title>cpio help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-help/m-p/4903437#M404528</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I want to duplicate the home dir of a RH linux server onto another linux machine. I have scp'ed the entire dir over however this does not preserve permission or ownership rights. &lt;BR /&gt;&lt;BR /&gt;I believe cpio can effectively do this however I have never used cpio before. The man pages mention how to cpio a dir to a new dir but can I alternatively use cpio to create a file that I can scp to the /home dir of my other server and import so that the entire sub dir structures will be identical and username/permissions will be in tact?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 23 May 2005 09:36:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio-help/m-p/4903437#M404528</guid>
      <dc:creator>Duffs</dc:creator>
      <dc:date>2005-05-23T09:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: cpio help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-help/m-p/4903438#M404529</link>
      <description>Yes that method will work and all ownerships and file modes will be preserved.&lt;BR /&gt;&lt;BR /&gt;On the source box,&lt;BR /&gt;cd to desired starting directory&lt;BR /&gt;find . -print | cpio -ocv &amp;gt; /tmp/xxx.cpio&lt;BR /&gt;or&lt;BR /&gt;cd /&lt;BR /&gt;find /home -print | cpio -ocv &amp;gt; /tmp/xxx.cpio&lt;BR /&gt;&lt;BR /&gt;Now ftp, rcp, or scp /tmp/xxx.cpio to the target machine.&lt;BR /&gt;&lt;BR /&gt;On the target machine:&lt;BR /&gt;cd to desired starting directory:&lt;BR /&gt;cpio -icvdum &amp;lt; /tmp/xxx.cpio&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 23 May 2005 09:41:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio-help/m-p/4903438#M404529</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-05-23T09:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: cpio help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-help/m-p/4903439#M404530</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can create a tar archive and then scp it to the other system and untar the archive over there.&lt;BR /&gt;&lt;BR /&gt;Is that possible.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Mon, 23 May 2005 09:42:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio-help/m-p/4903439#M404530</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2005-05-23T09:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: cpio help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-help/m-p/4903440#M404531</link>
      <description>In that case, please just stick to scp and use the -p option&lt;BR /&gt;&lt;BR /&gt; â  p   Preserves modification times, access times, and modes from the original file.&lt;BR /&gt;&lt;BR /&gt;For cpio it would be something like&lt;BR /&gt;&lt;BR /&gt;hosta# find . | cpio -ocv &amp;gt;/tmp/xx.cpio&lt;BR /&gt;hostb# cpio -iuvdma&lt;BR /&gt;Enjoy, Have FUN! H.Mer</description>
      <pubDate>Mon, 23 May 2005 09:43:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio-help/m-p/4903440#M404531</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2005-05-23T09:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: cpio help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-help/m-p/4903441#M404532</link>
      <description>Thats perfect, thanks lads.</description>
      <pubDate>Mon, 23 May 2005 10:29:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio-help/m-p/4903441#M404532</guid>
      <dc:creator>Duffs</dc:creator>
      <dc:date>2005-05-23T10:29:53Z</dc:date>
    </item>
  </channel>
</rss>

