<?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: Restoring tape using tar in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/restoring-tape-using-tar/m-p/3370353#M195553</link>
    <description>tar is not a good command in HP UX, &lt;BR /&gt;&lt;BR /&gt;u can use the both fbackup and frecover command in HP unix&lt;BR /&gt;&lt;BR /&gt;to backup&lt;BR /&gt;# fbackup -f /dev/rmt/0m -i /oracle&lt;BR /&gt;&lt;BR /&gt;to restore everything back to /oracle&lt;BR /&gt;# frecover -f /dev/rmt/0m -r&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;but if u still want to use tar&lt;BR /&gt;# tar -xvf /dev/rmt/0m ./oracle&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 01 Sep 2004 19:55:53 GMT</pubDate>
    <dc:creator>Jason_216</dc:creator>
    <dc:date>2004-09-01T19:55:53Z</dc:date>
    <item>
      <title>Restoring tape using tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restoring-tape-using-tar/m-p/3370350#M195550</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I took backup using tar &lt;BR /&gt;&lt;BR /&gt;$tar -cvf /dev/rmt/0m /oracle &lt;BR /&gt; &lt;BR /&gt;Now I have new directory /test. And I want to restore my backup into /test. &lt;BR /&gt;I have run tar xvf /dev/rmt/0m /test &lt;BR /&gt;or tar xvf /dev/rmt/0m . &lt;BR /&gt;But it is not working. It is not &lt;BR /&gt;doing anything , not restoring. &lt;BR /&gt;&lt;BR /&gt;If I do "tar xvf /dev/rmt/0m /oracle , than it's start restoring backup but in to /oracle. &lt;BR /&gt;&lt;BR /&gt;How can I restore backup into other directory ? &lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;BR /&gt;&lt;BR /&gt;Henry</description>
      <pubDate>Wed, 01 Sep 2004 16:29:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restoring-tape-using-tar/m-p/3370350#M195550</guid>
      <dc:creator>Henry_52</dc:creator>
      <dc:date>2004-09-01T16:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Restoring tape using tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restoring-tape-using-tar/m-p/3370351#M195551</link>
      <description>Henry,&lt;BR /&gt;&lt;BR /&gt;  With tar, if you use the absolute path name to backup the file, then you can only restore it to the absolute path.&lt;BR /&gt;&lt;BR /&gt;  You will have to use pax to restore it to a relative path&lt;BR /&gt;&lt;BR /&gt;  # cd /test&lt;BR /&gt;  # pax -rf /dev/rmt/0m -s '|^/|\./|' &lt;BR /&gt;&lt;BR /&gt;  the above command will restore the files from the tape relative to the /test directory&lt;BR /&gt;&lt;BR /&gt;-- Sundar.</description>
      <pubDate>Wed, 01 Sep 2004 16:48:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restoring-tape-using-tar/m-p/3370351#M195551</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2004-09-01T16:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Restoring tape using tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restoring-tape-using-tar/m-p/3370352#M195552</link>
      <description>HP's tar doesn't have an option to restore the directory as something else.  &lt;BR /&gt;Try this:&lt;BR /&gt;cd /&lt;BR /&gt;tar -cvf /dev/rmt/0m ./oracle&lt;BR /&gt;cd /test&lt;BR /&gt;tar -xvf /dev/rmt/0m&lt;BR /&gt;This will put the data in /test/oracle&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Sep 2004 16:48:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restoring-tape-using-tar/m-p/3370352#M195552</guid>
      <dc:creator>john kingsley</dc:creator>
      <dc:date>2004-09-01T16:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Restoring tape using tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restoring-tape-using-tar/m-p/3370353#M195553</link>
      <description>tar is not a good command in HP UX, &lt;BR /&gt;&lt;BR /&gt;u can use the both fbackup and frecover command in HP unix&lt;BR /&gt;&lt;BR /&gt;to backup&lt;BR /&gt;# fbackup -f /dev/rmt/0m -i /oracle&lt;BR /&gt;&lt;BR /&gt;to restore everything back to /oracle&lt;BR /&gt;# frecover -f /dev/rmt/0m -r&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;but if u still want to use tar&lt;BR /&gt;# tar -xvf /dev/rmt/0m ./oracle&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Sep 2004 19:55:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restoring-tape-using-tar/m-p/3370353#M195553</guid>
      <dc:creator>Jason_216</dc:creator>
      <dc:date>2004-09-01T19:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Restoring tape using tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restoring-tape-using-tar/m-p/3370354#M195554</link>
      <description>You have taken archieve as absolute path /oracle/*&lt;BR /&gt;&lt;BR /&gt; When if you try to extract then it will do it exactly /oracle/&lt;BR /&gt;&lt;BR /&gt; You can change that &lt;USING relative="" path=""&gt; as,&lt;BR /&gt; cd /;&lt;BR /&gt; tar  -cvf /dev/rmt/0m oracle&lt;BR /&gt;&lt;BR /&gt; or &lt;BR /&gt; tar  -cvf /dev/rmt/0m ./oracle&lt;BR /&gt; &lt;BR /&gt; To extract under /test then,&lt;BR /&gt; mkdir /test&lt;BR /&gt; cd /test&lt;BR /&gt; tar -xvf  /dev/rmt/0m&lt;BR /&gt;&lt;BR /&gt; It will now extract as /test/oracle/*&lt;BR /&gt; &lt;BR /&gt;&lt;/USING&gt;</description>
      <pubDate>Thu, 02 Sep 2004 00:44:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restoring-tape-using-tar/m-p/3370354#M195554</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-09-02T00:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Restoring tape using tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restoring-tape-using-tar/m-p/3370355#M195555</link>
      <description>Yes this is the way&lt;BR /&gt;&lt;BR /&gt;#tar -cvf /dev/rmt/0m ./oracle&lt;BR /&gt;#cd /test&lt;BR /&gt;#tar -xvf /dev/rmt/0m&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;SK</description>
      <pubDate>Thu, 02 Sep 2004 06:52:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restoring-tape-using-tar/m-p/3370355#M195555</guid>
      <dc:creator>Sยภเl Kย๓คг</dc:creator>
      <dc:date>2004-09-02T06:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Restoring tape using tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restoring-tape-using-tar/m-p/3370356#M195556</link>
      <description>The tar backups taken with absolute paths will be restored to original path. The tar can not exclude / in tar archive.&lt;BR /&gt;&lt;BR /&gt;You can try as follows.&lt;BR /&gt;&lt;BR /&gt;1. Use of pax&lt;BR /&gt;cd /where_to_resore&lt;BR /&gt;pax -rv -s '/^\///' &amp;lt; your.tar &lt;BR /&gt;&lt;BR /&gt;2. Use GNU tar.&lt;BR /&gt;Take care of block size.&lt;BR /&gt;&lt;BR /&gt;3. Use of chroot environment&lt;BR /&gt;/usr/bin/cp /usr/sbin/static/tar /tmp&lt;BR /&gt;/usr/bin/dd if=file.tar | /usr/bin/chroot /tmp ./tar xf -  &lt;BR /&gt;&lt;BR /&gt;Anil</description>
      <pubDate>Thu, 02 Sep 2004 07:06:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restoring-tape-using-tar/m-p/3370356#M195556</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2004-09-02T07:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: Restoring tape using tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restoring-tape-using-tar/m-p/3370357#M195557</link>
      <description>Thank you for your quick reply.&lt;BR /&gt;Because I can't backup again,&lt;BR /&gt;I have to restore tar tapes.&lt;BR /&gt;According to Sundar's reply,&lt;BR /&gt;I could restore tapes using pax command.&lt;BR /&gt;Thank you very much Sundar !!!&lt;BR /&gt;&lt;BR /&gt;Henry&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Sep 2004 09:59:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restoring-tape-using-tar/m-p/3370357#M195557</guid>
      <dc:creator>Henry_52</dc:creator>
      <dc:date>2004-09-02T09:59:24Z</dc:date>
    </item>
  </channel>
</rss>

