<?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 modified files in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-modified-files/m-p/2732778#M65829</link>
    <description>Thanks everybody, I used the find with the newer option to get my script to work.</description>
    <pubDate>Wed, 29 May 2002 11:55:42 GMT</pubDate>
    <dc:creator>Barry Feinberg</dc:creator>
    <dc:date>2002-05-29T11:55:42Z</dc:date>
    <item>
      <title>cpio modified files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-modified-files/m-p/2732773#M65824</link>
      <description>I am using cpio to copy files to a remote server. Is there a way to copy only files that were modified since the last cpio copy? The syntax I am using is.&lt;BR /&gt;find /dir &lt;SERVER1&gt; -depth | cpio -oc | remsh &lt;SERVER2&gt; "cd &lt;REMOTEDIR&gt; ; cpio -icduv"&lt;/REMOTEDIR&gt;&lt;/SERVER2&gt;&lt;/SERVER1&gt;</description>
      <pubDate>Tue, 28 May 2002 17:19:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio-modified-files/m-p/2732773#M65824</guid>
      <dc:creator>Barry Feinberg</dc:creator>
      <dc:date>2002-05-28T17:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: cpio modified files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-modified-files/m-p/2732774#M65825</link>
      <description>Hi Barry:&lt;BR /&gt;&lt;BR /&gt;Create a reference file with 'touch' and use 'find -newer &lt;REFFILE&gt;...'.  For example:&lt;BR /&gt;&lt;BR /&gt;# touch -m -t 05012359 /tmp/myref # May 1, 2359 hours.&lt;BR /&gt;&lt;BR /&gt;# find / -newer /tmp/myref ...&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;/REFFILE&gt;</description>
      <pubDate>Tue, 28 May 2002 17:31:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio-modified-files/m-p/2732774#M65825</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-05-28T17:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: cpio modified files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-modified-files/m-p/2732775#M65826</link>
      <description>Not sure about an option directly with cpio. But you can use lot of options with find command:&lt;BR /&gt;&lt;BR /&gt;-newer&lt;BR /&gt;-atime&lt;BR /&gt;-mtime&lt;BR /&gt;-ctime&lt;BR /&gt;&lt;BR /&gt;# man find - for details</description>
      <pubDate>Tue, 28 May 2002 17:33:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio-modified-files/m-p/2732775#M65826</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2002-05-28T17:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: cpio modified files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-modified-files/m-p/2732776#M65827</link>
      <description>Just to expand on the "-newer" option. First you create a reference file before you do the first cpio.&lt;BR /&gt;&lt;BR /&gt;# cd /tmp&lt;BR /&gt;# touch refA&lt;BR /&gt;# (find /dir -xdev|cpio -coax) | remsh venus) "cd /dirA;cpio -icdmuxla"&lt;BR /&gt;===&amp;gt;The first cpio, syntax that I normally use ("push method").&lt;BR /&gt;&lt;BR /&gt;For the subsequent cpio you would do ..&lt;BR /&gt;# (find /dir -xdev -newer /tmp/refA|cpio -coax) | remsh venus) "cd /dirA;cpio -icdmuxla"&lt;BR /&gt;&lt;BR /&gt;hope it helps ..&lt;BR /&gt;</description>
      <pubDate>Tue, 28 May 2002 19:34:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio-modified-files/m-p/2732776#M65827</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-05-28T19:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: cpio modified files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-modified-files/m-p/2732777#M65828</link>
      <description>Hi Barry,&lt;BR /&gt;&lt;BR /&gt;Do not use the -u (unconditional copy) option with the cpio command. This will check the last modified time for the file and will not overwrite the file if the file that exist is of a newer date than the one that was backed up.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;regds&lt;BR /&gt;</description>
      <pubDate>Tue, 28 May 2002 19:44:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio-modified-files/m-p/2732777#M65828</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2002-05-28T19:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: cpio modified files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-modified-files/m-p/2732778#M65829</link>
      <description>Thanks everybody, I used the find with the newer option to get my script to work.</description>
      <pubDate>Wed, 29 May 2002 11:55:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio-modified-files/m-p/2732778#M65829</guid>
      <dc:creator>Barry Feinberg</dc:creator>
      <dc:date>2002-05-29T11:55:42Z</dc:date>
    </item>
  </channel>
</rss>

