<?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 CPIO to a mount point in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-to-a-mount-point/m-p/3364897#M867097</link>
    <description>Hello all,&lt;BR /&gt;&lt;BR /&gt;I am trying to use CPIO to transfer some file systems from one system to another. I hope some of you could shed some light on it.&lt;BR /&gt;&lt;BR /&gt;At the source server, I run,&lt;BR /&gt;cd /&lt;BR /&gt;find ./ -print | cpio -ocvB &amp;gt; /dev/rmt/0m&lt;BR /&gt;&lt;BR /&gt;At the destination server, I run,&lt;BR /&gt;&lt;BR /&gt;cd /&lt;BR /&gt;cpio -icvBdum abc/* &amp;lt; /dev/rmt/0m&lt;BR /&gt;&lt;BR /&gt;"/abc" is a mount point for a file system. I made sure the root has right to write to "/abc".&lt;BR /&gt;&lt;BR /&gt;After waiting for a few hours, I got nothing but "abc/lost+found".&lt;BR /&gt;&lt;BR /&gt;However, if I run,&lt;BR /&gt;cd /abc&lt;BR /&gt;cpio -icvBdum abc/* &amp;lt; /dev/rmt/0m&lt;BR /&gt;&lt;BR /&gt;I got all th files under "/abc/abc". I have to run "mv /abc/abc/* /abc" to get the files into the right place.&lt;BR /&gt;Since I have many file systems to transfer, I would like to be able to run command such as,&lt;BR /&gt;&lt;BR /&gt;cpio -icvBdum abc/* abd/* abe/* ... &amp;lt; /dev/rmt/0m&lt;BR /&gt;&lt;BR /&gt;Please advise.&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;Yizhi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 25 Aug 2004 11:27:16 GMT</pubDate>
    <dc:creator>yizhi wang</dc:creator>
    <dc:date>2004-08-25T11:27:16Z</dc:date>
    <item>
      <title>CPIO to a mount point</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-to-a-mount-point/m-p/3364897#M867097</link>
      <description>Hello all,&lt;BR /&gt;&lt;BR /&gt;I am trying to use CPIO to transfer some file systems from one system to another. I hope some of you could shed some light on it.&lt;BR /&gt;&lt;BR /&gt;At the source server, I run,&lt;BR /&gt;cd /&lt;BR /&gt;find ./ -print | cpio -ocvB &amp;gt; /dev/rmt/0m&lt;BR /&gt;&lt;BR /&gt;At the destination server, I run,&lt;BR /&gt;&lt;BR /&gt;cd /&lt;BR /&gt;cpio -icvBdum abc/* &amp;lt; /dev/rmt/0m&lt;BR /&gt;&lt;BR /&gt;"/abc" is a mount point for a file system. I made sure the root has right to write to "/abc".&lt;BR /&gt;&lt;BR /&gt;After waiting for a few hours, I got nothing but "abc/lost+found".&lt;BR /&gt;&lt;BR /&gt;However, if I run,&lt;BR /&gt;cd /abc&lt;BR /&gt;cpio -icvBdum abc/* &amp;lt; /dev/rmt/0m&lt;BR /&gt;&lt;BR /&gt;I got all th files under "/abc/abc". I have to run "mv /abc/abc/* /abc" to get the files into the right place.&lt;BR /&gt;Since I have many file systems to transfer, I would like to be able to run command such as,&lt;BR /&gt;&lt;BR /&gt;cpio -icvBdum abc/* abd/* abe/* ... &amp;lt; /dev/rmt/0m&lt;BR /&gt;&lt;BR /&gt;Please advise.&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;Yizhi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Aug 2004 11:27:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio-to-a-mount-point/m-p/3364897#M867097</guid>
      <dc:creator>yizhi wang</dc:creator>
      <dc:date>2004-08-25T11:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: CPIO to a mount point</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-to-a-mount-point/m-p/3364898#M867098</link>
      <description>Are you able to establish a NFS mount?&lt;BR /&gt;&lt;BR /&gt;If so, mount the filesystem from the new system onto the old system.&lt;BR /&gt;&lt;BR /&gt;Using CPIO, &lt;BR /&gt;     # cd &lt;DIRECTORY you="" want="" to="" copy=""&gt;&lt;BR /&gt;     # find . -depth | cpio -pmuldv &lt;NFS mount="" point="" of="" new="" system=""&gt;&lt;BR /&gt;&lt;BR /&gt;No need to swap tapes and you retain the permissions and owners (assuming the owners exist on the new system as well).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/NFS&gt;&lt;/DIRECTORY&gt;</description>
      <pubDate>Wed, 25 Aug 2004 11:34:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio-to-a-mount-point/m-p/3364898#M867098</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2004-08-25T11:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: CPIO to a mount point</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-to-a-mount-point/m-p/3364899#M867099</link>
      <description>Try-&lt;BR /&gt;&lt;BR /&gt;cpio -icvBdum ./abc  &lt;BR /&gt;Since the path names you fed to cpio begin with "./".&lt;BR /&gt; &lt;BR /&gt;FYI- don't use "abc/*" on a command line since it will try to expand "*" to matching file names on the CURRENT directory- Not what is on the tape...&lt;BR /&gt; &lt;BR /&gt;HTH&lt;BR /&gt; &lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Wed, 25 Aug 2004 11:36:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio-to-a-mount-point/m-p/3364899#M867099</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2004-08-25T11:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: CPIO to a mount point</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-to-a-mount-point/m-p/3364900#M867100</link>
      <description>Hi Yizhi,&lt;BR /&gt;&lt;BR /&gt;Are both servers on the same network ?&lt;BR /&gt;&lt;BR /&gt;Then you could use cpio between both systems.&lt;BR /&gt;&lt;BR /&gt;# find /source | cpio -ov | remsh other_server " cd /target ; cpio -idvum "&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Wed, 25 Aug 2004 14:11:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio-to-a-mount-point/m-p/3364900#M867100</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2004-08-25T14:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: CPIO to a mount point</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-to-a-mount-point/m-p/3364901#M867101</link>
      <description>Thanks to all your suggestions.&lt;BR /&gt;I trird the NFS idea Rick suggested. However, some of the files can not be read by the root at the new server, because these files are only accessible to the owner and the group.&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;Best regrads.&lt;BR /&gt;yizhi</description>
      <pubDate>Wed, 25 Aug 2004 17:13:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio-to-a-mount-point/m-p/3364901#M867101</guid>
      <dc:creator>yizhi wang</dc:creator>
      <dc:date>2004-08-25T17:13:36Z</dc:date>
    </item>
  </channel>
</rss>

