<?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: Copy or cpio command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-or-cpio-command/m-p/4256658#M332364</link>
    <description>Nope, I know even if that is not a big deal, still I couldn't make it work with the date thing to be consistent on destination like the source with any command.</description>
    <pubDate>Mon, 25 Aug 2008 14:34:55 GMT</pubDate>
    <dc:creator>Qcheck</dc:creator>
    <dc:date>2008-08-25T14:34:55Z</dc:date>
    <item>
      <title>Copy or cpio command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-or-cpio-command/m-p/4256649#M332355</link>
      <description>I am using cpio –pdm to copy the directory which has so many sub folders and files to the new NFS directory. It is copying everything but the dates are not consistent and also the ownership of the symbolic links changing to root:system and the dates on the symbolic links are changing to the current date of copying.&lt;BR /&gt;&lt;BR /&gt;Then I used cp command with the option –h –p –R –f, which did better than cpio –pdm command but still the dates on the symbolic link files is changing to the current date of copy.&lt;BR /&gt;&lt;BR /&gt;Please give me the appropriate command to copy the symbolic links as is with the modification dates and the ownership, along with the following:&lt;BR /&gt;&lt;BR /&gt;My motive is:&lt;BR /&gt;&lt;BR /&gt;1)     To keep the mode(including bits)&lt;BR /&gt;&lt;BR /&gt;2)     To keep the modification date&lt;BR /&gt;&lt;BR /&gt;3)     Should copy the symbolic link as symbolic link with the source ownership and dates.&lt;BR /&gt;&lt;BR /&gt;4)     And also the user and group&lt;BR /&gt;&lt;BR /&gt;Thanks in an advance.&lt;BR /&gt;</description>
      <pubDate>Fri, 22 Aug 2008 18:42:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-or-cpio-command/m-p/4256649#M332355</guid>
      <dc:creator>Qcheck</dc:creator>
      <dc:date>2008-08-22T18:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Copy or cpio command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-or-cpio-command/m-p/4256650#M332356</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;The modication timestamp, ownership and permissions of symbolic links is immaterial.&lt;BR /&gt;&lt;BR /&gt;It is the ownership and the permission of the file or directory that is pointed to by the symbolic link that matters for file access.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 22 Aug 2008 18:56:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-or-cpio-command/m-p/4256650#M332356</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-08-22T18:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: Copy or cpio command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-or-cpio-command/m-p/4256651#M332357</link>
      <description>James,&lt;BR /&gt;&lt;BR /&gt;I know, but I just wanna make sure that I use the best option to copy over the files, which it is going to be a massive NFS project. So just wanna discuss this and go in right direction.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Fri, 22 Aug 2008 18:59:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-or-cpio-command/m-p/4256651#M332357</guid>
      <dc:creator>Qcheck</dc:creator>
      <dc:date>2008-08-22T18:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Copy or cpio command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-or-cpio-command/m-p/4256652#M332358</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;For replicating filesystems with 'cpio' I use:&lt;BR /&gt;&lt;BR /&gt;# cd srcdir &amp;amp;&amp;amp; find . -depth -print | cpio -pudlmv dstdir&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 22 Aug 2008 19:01:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-or-cpio-command/m-p/4256652#M332358</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-08-22T19:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Copy or cpio command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-or-cpio-command/m-p/4256653#M332359</link>
      <description>I have done the same thing using cpio&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;find . â  print | cpio â  ocxa | remsh &lt;TARGET system="" name=""&gt; â  cd /target/dir;cpio â  icxvdmuâ  &lt;BR /&gt;&lt;BR /&gt;&lt;/TARGET&gt;</description>
      <pubDate>Fri, 22 Aug 2008 19:05:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-or-cpio-command/m-p/4256653#M332359</guid>
      <dc:creator>Paul Sperry</dc:creator>
      <dc:date>2008-08-22T19:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Copy or cpio command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-or-cpio-command/m-p/4256654#M332360</link>
      <description>Wow I guess word dosent past too well.&lt;BR /&gt;&lt;BR /&gt;cd to source top level directory&lt;BR /&gt;&lt;BR /&gt;find . -print | cpio -ocxa | remsh target_server "cd /target/dir;cpio -icxvdmu"&lt;BR /&gt;&lt;BR /&gt;make sure the .rhost is set on the target system and test it first.</description>
      <pubDate>Fri, 22 Aug 2008 19:13:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-or-cpio-command/m-p/4256654#M332360</guid>
      <dc:creator>Paul Sperry</dc:creator>
      <dc:date>2008-08-22T19:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Copy or cpio command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-or-cpio-command/m-p/4256655#M332361</link>
      <description>Paul and James, thank you for the responses, I really appreciate. I tested what James said but still cp -h -p -R -f is doing great job than cpio with your option.&lt;BR /&gt;&lt;BR /&gt;Again I will try on Monday and will let you all inform my progress.&lt;BR /&gt;&lt;BR /&gt;Thanks again.</description>
      <pubDate>Fri, 22 Aug 2008 19:16:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-or-cpio-command/m-p/4256655#M332361</guid>
      <dc:creator>Qcheck</dc:creator>
      <dc:date>2008-08-22T19:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Copy or cpio command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-or-cpio-command/m-p/4256656#M332362</link>
      <description>As JRF says, the info with a symlink other than the target is ignored.  If you want to see something more useful, you can use "ll -L" to get the properties of the target.&lt;BR /&gt;&lt;BR /&gt;You might try tar to see if it works better?&lt;BR /&gt;You could also use fbackup/frestore.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;the ownership of the symbolic links changing to root:system&lt;BR /&gt;&lt;BR /&gt;Possibly because these tools don't know that now chown(1) has a -l option, lchown(2) to change the ownership?</description>
      <pubDate>Sat, 23 Aug 2008 01:01:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-or-cpio-command/m-p/4256656#M332362</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-08-23T01:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Copy or cpio command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-or-cpio-command/m-p/4256657#M332363</link>
      <description>&amp;gt;3) Should copy the symbolic link as symbolic link with the source ownership and dates.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;ownership and dates.&lt;BR /&gt;&lt;BR /&gt;All your 4 options should be working except the date on the symbolic link. Even with fbackup or pax and other tools like tar/cpio/vxdump it does not work. &lt;BR /&gt;&lt;BR /&gt;Regards.&lt;BR /&gt;</description>
      <pubDate>Mon, 25 Aug 2008 07:20:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-or-cpio-command/m-p/4256657#M332363</guid>
      <dc:creator>Rasheed Tamton</dc:creator>
      <dc:date>2008-08-25T07:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Copy or cpio command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-or-cpio-command/m-p/4256658#M332364</link>
      <description>Nope, I know even if that is not a big deal, still I couldn't make it work with the date thing to be consistent on destination like the source with any command.</description>
      <pubDate>Mon, 25 Aug 2008 14:34:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-or-cpio-command/m-p/4256658#M332364</guid>
      <dc:creator>Qcheck</dc:creator>
      <dc:date>2008-08-25T14:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: Copy or cpio command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-or-cpio-command/m-p/4256659#M332365</link>
      <description>The most consistent way I have found to keep all of the atributes and links is:&lt;BR /&gt;&lt;BR /&gt;find . -depth -print -xdev | cpio -pdlmax /dest&lt;BR /&gt;&lt;BR /&gt;Jon</description>
      <pubDate>Tue, 26 Aug 2008 13:04:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-or-cpio-command/m-p/4256659#M332365</guid>
      <dc:creator>Jon M Zellhoefer</dc:creator>
      <dc:date>2008-08-26T13:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: Copy or cpio command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-or-cpio-command/m-p/4256660#M332366</link>
      <description>Seems it works.&lt;BR /&gt;Divide in two parts!&lt;BR /&gt;&lt;BR /&gt;Supose you are in curdir and would cpio to dstdir (create dstdir in advance).&lt;BR /&gt;&lt;BR /&gt;cd curdir&lt;BR /&gt;## first not dirs&lt;BR /&gt;find -depth -not -type d -print0 | cpio -0pudlmv dstdir&lt;BR /&gt;&lt;BR /&gt;## after... just dirs&lt;BR /&gt;find -depth -type d -print0 | cpio -0pudlmv dstdir&lt;BR /&gt;&lt;BR /&gt;{}'s&lt;BR /&gt;MaRZ&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Feb 2009 00:13:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-or-cpio-command/m-p/4256660#M332366</guid>
      <dc:creator>Márcio Rezende</dc:creator>
      <dc:date>2009-02-27T00:13:02Z</dc:date>
    </item>
  </channel>
</rss>

