<?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 directory while preserving modification time. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-directory-while-preserving-modification-time/m-p/3790866#M264983</link>
    <description>The -p option (as mentioned in the man page) will preserve the modification time, access time, file mode, user ID, and group ID as allowed by permissions (to quote the man page). If the amount space is significant, you might want use cpio like this:&lt;BR /&gt; &lt;BR /&gt;cd /psoft&lt;BR /&gt;find . | cpio -pudlmv /psoftold &lt;BR /&gt; &lt;BR /&gt;This is the fastest way to copy lots of files. Note that both tar and cpio will not handle large files (files larger than 2Gb) so the cp command would be needed in that case. To see whether there may be largefiles in this directory, use this command:&lt;BR /&gt; &lt;BR /&gt;fsadm /psoft&lt;BR /&gt; &lt;BR /&gt;(this assumes that the /psoft directory is a VxFS filesystem).</description>
    <pubDate>Thu, 18 May 2006 15:13:37 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2006-05-18T15:13:37Z</dc:date>
    <item>
      <title>Copy directory while preserving modification time.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-directory-while-preserving-modification-time/m-p/3790864#M264981</link>
      <description>I have a directory /psoft which contain hundreds of files and subdirectories.&lt;BR /&gt;&lt;BR /&gt;I would like to make a duplicate copy of this dir structure while preserving original modification times of all files and subdirectories underneath it.&lt;BR /&gt;&lt;BR /&gt;I tried this command but didn’t preserve the mtime.&lt;BR /&gt;#cp –r /psoft /psoftold (changes the modification time)&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Gulam&lt;BR /&gt;</description>
      <pubDate>Thu, 18 May 2006 14:13:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-directory-while-preserving-modification-time/m-p/3790864#M264981</guid>
      <dc:creator>Gulam Mohiuddin</dc:creator>
      <dc:date>2006-05-18T14:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: Copy directory while preserving modification time.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-directory-while-preserving-modification-time/m-p/3790865#M264982</link>
      <description>You could try using tar.&lt;BR /&gt;&lt;BR /&gt;# cd /psoft&lt;BR /&gt;# tar -cf - . | (cd /psoftold ; tar -xf -)&lt;BR /&gt;&lt;BR /&gt;In the first tar command it is 'tar&lt;SPACE&gt;-cf&lt;SPACE&gt;-&lt;SPACE&gt;.'&lt;BR /&gt;&lt;BR /&gt;The second tar command is 'tar&lt;SPACE&gt;-xf&lt;SPACE&gt;-'.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPACE&gt;&lt;/SPACE&gt;&lt;/SPACE&gt;&lt;/SPACE&gt;&lt;/SPACE&gt;</description>
      <pubDate>Thu, 18 May 2006 14:22:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-directory-while-preserving-modification-time/m-p/3790865#M264982</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2006-05-18T14:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Copy directory while preserving modification time.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-directory-while-preserving-modification-time/m-p/3790866#M264983</link>
      <description>The -p option (as mentioned in the man page) will preserve the modification time, access time, file mode, user ID, and group ID as allowed by permissions (to quote the man page). If the amount space is significant, you might want use cpio like this:&lt;BR /&gt; &lt;BR /&gt;cd /psoft&lt;BR /&gt;find . | cpio -pudlmv /psoftold &lt;BR /&gt; &lt;BR /&gt;This is the fastest way to copy lots of files. Note that both tar and cpio will not handle large files (files larger than 2Gb) so the cp command would be needed in that case. To see whether there may be largefiles in this directory, use this command:&lt;BR /&gt; &lt;BR /&gt;fsadm /psoft&lt;BR /&gt; &lt;BR /&gt;(this assumes that the /psoft directory is a VxFS filesystem).</description>
      <pubDate>Thu, 18 May 2006 15:13:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-directory-while-preserving-modification-time/m-p/3790866#M264983</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-05-18T15:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Copy directory while preserving modification time.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-directory-while-preserving-modification-time/m-p/3790867#M264984</link>
      <description>Hi Gulam,&lt;BR /&gt;&lt;BR /&gt;Duplicate a directory hierarchy:&lt;BR /&gt;&lt;BR /&gt;# cd olddir&lt;BR /&gt;# find . -depth -print | cpio -pdm newdir&lt;BR /&gt;&lt;BR /&gt;More information: man cpio&lt;BR /&gt;&lt;BR /&gt;rgs,&lt;BR /&gt;&lt;BR /&gt;ran</description>
      <pubDate>Fri, 19 May 2006 01:30:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-directory-while-preserving-modification-time/m-p/3790867#M264984</guid>
      <dc:creator>rariasn</dc:creator>
      <dc:date>2006-05-19T01:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Copy directory while preserving modification time.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-directory-while-preserving-modification-time/m-p/3790868#M264985</link>
      <description>Hi Gulam,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;use cp -p option it will preserve the Permissions &amp;amp; time stamp too...&lt;BR /&gt;&lt;BR /&gt;You can also use tar&amp;amp;cpio but that limitation is u cannot take a copy of files more than 2 Gb&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 May 2006 01:37:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-directory-while-preserving-modification-time/m-p/3790868#M264985</guid>
      <dc:creator>Arunkumar.B</dc:creator>
      <dc:date>2006-05-19T01:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Copy directory while preserving modification time.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-directory-while-preserving-modification-time/m-p/3790869#M264986</link>
      <description>Hi Gulam,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;use cp -p option it will preserve the Permissions &amp;amp; time stamp too...&lt;BR /&gt;&lt;BR /&gt;You can also use tar&amp;amp;cpio but that limitation is u cannot take a copy of files having size more than 2 Gb&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 May 2006 01:37:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-directory-while-preserving-modification-time/m-p/3790869#M264986</guid>
      <dc:creator>Arunkumar.B</dc:creator>
      <dc:date>2006-05-19T01:37:37Z</dc:date>
    </item>
  </channel>
</rss>

