<?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: tar command question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-command-question/m-p/3774820#M261985</link>
    <description>Shalom etc,&lt;BR /&gt;&lt;BR /&gt;I'd use the mv or cp  command&lt;BR /&gt;&lt;BR /&gt;mv /oracle/* /oracle_temp&lt;BR /&gt;&lt;BR /&gt;cp -R /oracle/* /oracle_temp&lt;BR /&gt;&lt;BR /&gt;The database must be down if this includes database data files.&lt;BR /&gt;&lt;BR /&gt;If the lvs are on two systems scp -rp will work well.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Thu, 20 Apr 2006 09:07:15 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2006-04-20T09:07:15Z</dc:date>
    <item>
      <title>tar command question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-command-question/m-p/3774815#M261980</link>
      <description>&lt;BR /&gt;OK, I am getting confused with it, here is the situation.&lt;BR /&gt;&lt;BR /&gt;I have 2 directories:&lt;BR /&gt;&lt;BR /&gt;/oracle and /oracle_temp&lt;BR /&gt;&lt;BR /&gt;I need to move the contents of /oracle to /oracle_temp, it's about 12GB. I just created the oracle_temp LV and mounted it. &lt;BR /&gt;&lt;BR /&gt;How do I run the tar command to copy all the files? Or do I use find and cpio?&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Apr 2006 09:01:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-command-question/m-p/3774815#M261980</guid>
      <dc:creator>dictum9</dc:creator>
      <dc:date>2006-04-20T09:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: tar command question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-command-question/m-p/3774816#M261981</link>
      <description>cd /oracle&lt;BR /&gt;tar cf - . | ( cd /oracle_temp ; tar xf - )&lt;BR /&gt; &lt;BR /&gt;HTH&lt;BR /&gt; &lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Thu, 20 Apr 2006 09:06:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-command-question/m-p/3774816#M261981</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2006-04-20T09:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: tar command question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-command-question/m-p/3774817#M261982</link>
      <description>I suggest you to use the cpio pipe, no restrictions on file size and the right mamagement of links and permissions.&lt;BR /&gt;&lt;BR /&gt;find source_dir -depth -print | cpio -pcdumv newdir&lt;BR /&gt;&lt;BR /&gt;Regards.</description>
      <pubDate>Thu, 20 Apr 2006 09:06:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-command-question/m-p/3774817#M261982</guid>
      <dc:creator>Tiziano Contorno _</dc:creator>
      <dc:date>2006-04-20T09:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: tar command question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-command-question/m-p/3774818#M261983</link>
      <description>Shalom etc,&lt;BR /&gt;&lt;BR /&gt;I'd use the mv or cp  command&lt;BR /&gt;&lt;BR /&gt;mv /oracle/* /oracle_temp&lt;BR /&gt;&lt;BR /&gt;cp -R /oracle/* /oracle_temp&lt;BR /&gt;&lt;BR /&gt;The database must be down if this includes database data files.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 20 Apr 2006 09:06:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-command-question/m-p/3774818#M261983</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-04-20T09:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: tar command question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-command-question/m-p/3774819#M261984</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;# find /oracle | cpio -pcmudv /oracle_temp&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Thu, 20 Apr 2006 09:06:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-command-question/m-p/3774819#M261984</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2006-04-20T09:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: tar command question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-command-question/m-p/3774820#M261985</link>
      <description>Shalom etc,&lt;BR /&gt;&lt;BR /&gt;I'd use the mv or cp  command&lt;BR /&gt;&lt;BR /&gt;mv /oracle/* /oracle_temp&lt;BR /&gt;&lt;BR /&gt;cp -R /oracle/* /oracle_temp&lt;BR /&gt;&lt;BR /&gt;The database must be down if this includes database data files.&lt;BR /&gt;&lt;BR /&gt;If the lvs are on two systems scp -rp will work well.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 20 Apr 2006 09:07:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-command-question/m-p/3774820#M261985</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-04-20T09:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: tar command question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-command-question/m-p/3774821#M261986</link>
      <description>cpio is much faster.&lt;BR /&gt;&lt;BR /&gt;cd /oracle&lt;BR /&gt;find . â  xdev â  depth â  print|cpio â  pmd /oracle_temp&lt;BR /&gt;&lt;BR /&gt;Unless you've got it backed up with Data Protector, in which case I'd use that.&lt;BR /&gt;&lt;BR /&gt;Mark Syder (like the drink but spelt different)</description>
      <pubDate>Thu, 20 Apr 2006 09:08:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-command-question/m-p/3774821#M261986</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2006-04-20T09:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: tar command question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-command-question/m-p/3774822#M261987</link>
      <description>OK, this one is working great, thanks to all. &lt;BR /&gt;&lt;BR /&gt;# find /oracle | cpio -pcmudv /oracle_temp</description>
      <pubDate>Thu, 20 Apr 2006 09:14:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-command-question/m-p/3774822#M261987</guid>
      <dc:creator>dictum9</dc:creator>
      <dc:date>2006-04-20T09:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: tar command question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-command-question/m-p/3774823#M261988</link>
      <description>Apologies for the formatting in my earlier response - that's what I get for copying from Mickeysoft T*rd! And mine was the first response when I typed it - honest! When I say that cpio is faster, I mean compared with tar rather than compared with someone else's solution. My solution again (typed rather than copied):&lt;BR /&gt;&lt;BR /&gt;cd /oracle&lt;BR /&gt;find . -xdev -depth -print|cpio -pmd /oracle_temp&lt;BR /&gt;&lt;BR /&gt;Mark</description>
      <pubDate>Thu, 20 Apr 2006 09:15:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-command-question/m-p/3774823#M261988</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2006-04-20T09:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: tar command question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-command-question/m-p/3774824#M261989</link>
      <description>The following did not copy all the files, why is that? It left out &lt;BR /&gt;the 9ias director. And the space is fine.&lt;BR /&gt;&lt;BR /&gt;# find /oracle | cpio -pcmudv /oracle_temp&lt;BR /&gt;&lt;BR /&gt;# ll /oracle&lt;BR /&gt;total 6&lt;BR /&gt;drwxr-xr-x   7 oracle     dba           1024 Jul 14  2005 9ias&lt;BR /&gt;drwxr-xr-x   2 root       root            96 Jun  1  2005 lost+found&lt;BR /&gt;drwxr-xr-x   2 oracle     dba           2048 Apr 18 13:12 v10&lt;BR /&gt;&lt;BR /&gt;ll /oracle_temp&lt;BR /&gt;total 0&lt;BR /&gt;drwxr-xr-x   2 root       root            96 Apr 20 09:52 lost+found&lt;BR /&gt;drwxr-xr-x   5 oracle     dba             96 Apr 20 10:24 oracle&lt;BR /&gt;#&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Apr 2006 09:28:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-command-question/m-p/3774824#M261989</guid>
      <dc:creator>dictum9</dc:creator>
      <dc:date>2006-04-20T09:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: tar command question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-command-question/m-p/3774825#M261990</link>
      <description>It appears to have copied everything across in a single directory called oracle. Have you looked inside this directory?&lt;BR /&gt;&lt;BR /&gt;Mark</description>
      <pubDate>Thu, 20 Apr 2006 09:33:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-command-question/m-p/3774825#M261990</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2006-04-20T09:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: tar command question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-command-question/m-p/3774826#M261991</link>
      <description>I had to remove everything and start over. This one copied all the files correctly.&lt;BR /&gt;&lt;BR /&gt;find . -xdev -depth -print|cpio -pmd /oracle_temp</description>
      <pubDate>Thu, 20 Apr 2006 10:03:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-command-question/m-p/3774826#M261991</guid>
      <dc:creator>dictum9</dc:creator>
      <dc:date>2006-04-20T10:03:43Z</dc:date>
    </item>
  </channel>
</rss>

