<?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 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/copy/m-p/3873788#M278857</link>
    <description>Hi,&lt;BR /&gt;Try&lt;BR /&gt;find ./* -print|cpio -pduml &lt;TARGET&gt;&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;Victor&lt;/TARGET&gt;</description>
    <pubDate>Tue, 03 Oct 2006 11:44:46 GMT</pubDate>
    <dc:creator>Victor BERRIDGE</dc:creator>
    <dc:date>2006-10-03T11:44:46Z</dc:date>
    <item>
      <title>copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy/m-p/3873786#M278855</link>
      <description>Hello ,&lt;BR /&gt;I'm trying to copy a large data area from a nfs mount point to another directory.I use the command &lt;BR /&gt;cd  to the source directory&lt;BR /&gt;find . -print |cpio -pdum target directory&lt;BR /&gt;to copy all the data's from the source to destination. But  i would like to eliminate a particular directory (.directory) in this copy process.&lt;BR /&gt;Any suggestions ?&lt;BR /&gt;thanks so much in advance.&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Oct 2006 11:20:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy/m-p/3873786#M278855</guid>
      <dc:creator>subhashni</dc:creator>
      <dc:date>2006-10-03T11:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy/m-p/3873787#M278856</link>
      <description>cd &lt;SOURCE directory=""&gt;&lt;BR /&gt;find . -path "./dir_to_exclude/*" | cpio -pdum &lt;TARGET_DIRECTORY&gt;&lt;/TARGET_DIRECTORY&gt;&lt;/SOURCE&gt;</description>
      <pubDate>Tue, 03 Oct 2006 11:43:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy/m-p/3873787#M278856</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2006-10-03T11:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy/m-p/3873788#M278857</link>
      <description>Hi,&lt;BR /&gt;Try&lt;BR /&gt;find ./* -print|cpio -pduml &lt;TARGET&gt;&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;Victor&lt;/TARGET&gt;</description>
      <pubDate>Tue, 03 Oct 2006 11:44:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy/m-p/3873788#M278857</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2006-10-03T11:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy/m-p/3873789#M278858</link>
      <description>Last post was the inverse of what you wanted. Here's the command which negates the path you want excluded:&lt;BR /&gt;&lt;BR /&gt;cd &lt;SOURCE directory=""&gt;&lt;BR /&gt;find . ! -path "./dir_to_exclude/*" -type f | cpio -pdum &lt;TARGET_DIRECTORY&gt;&lt;/TARGET_DIRECTORY&gt;&lt;/SOURCE&gt;</description>
      <pubDate>Tue, 03 Oct 2006 11:49:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy/m-p/3873789#M278858</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2006-10-03T11:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy/m-p/3873790#M278859</link>
      <description>Thanks much for the reply. Does it take so long to see a signle directory in target area. is that usual.&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 03 Oct 2006 13:56:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy/m-p/3873790#M278859</guid>
      <dc:creator>subhashni</dc:creator>
      <dc:date>2006-10-03T13:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy/m-p/3873791#M278860</link>
      <description>Hello ,&lt;BR /&gt;i have tried the below syntax to copy all the dir/files recursively from a source directory and eliminate the particular directory "test" to the target directory. Please assist , is any thing wrong in this.&lt;BR /&gt;cd &lt;SOURCE&gt;&lt;/SOURCE&gt;find . -name .test -prune -o -print |cpio -pdum &lt;TARGET directory=""&gt;&lt;BR /&gt;Thank u so much.&lt;/TARGET&gt;</description>
      <pubDate>Tue, 03 Oct 2006 15:10:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy/m-p/3873791#M278860</guid>
      <dc:creator>subhashni</dc:creator>
      <dc:date>2006-10-03T15:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy/m-p/3873792#M278861</link>
      <description>it would work! Then it would exclude all files and directories called .test even further down the recusive list (that is not what you want i think).&lt;BR /&gt;But on the other hand .test is not that normal a name.&lt;BR /&gt;&lt;BR /&gt;This would do it... even if it is a bit slow.&lt;BR /&gt;find ./ -depth | grep -v '\.test' | cpio -dump &lt;TARGET dir=""&gt;&lt;BR /&gt;&lt;BR /&gt;I would not use NFS for this type of copy but ssh:&lt;BR /&gt;login to the nfs server and go to the source dir and do:&lt;BR /&gt;tar cf - . | ssh user@host "(cd &lt;DIR&gt;; tar xf - )"&lt;BR /&gt;there &lt;DIR&gt; is the destination of the dump.&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/DIR&gt;&lt;/DIR&gt;&lt;/TARGET&gt;</description>
      <pubDate>Tue, 03 Oct 2006 15:45:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy/m-p/3873792#M278861</guid>
      <dc:creator>Jannik</dc:creator>
      <dc:date>2006-10-03T15:45:12Z</dc:date>
    </item>
  </channel>
</rss>

