<?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 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/2968921#M119945</link>
    <description>If the archive was created using the full paths, you could still extract the archive to an alternate location.&lt;BR /&gt;&lt;BR /&gt;# cp /sbin/tar /newpath&lt;BR /&gt;# cp tarfile.tar /newpath&lt;BR /&gt;# cd /newpath&lt;BR /&gt;# chroot ./ tar xvf tarfile.tar&lt;BR /&gt;&lt;BR /&gt;You can then remove /newpath/tar and tarfile.tar&lt;BR /&gt;&lt;BR /&gt;The files will be extracted relative to the new path. Instead of /mypath/myfile being extracted to the orignal location, it would now be /newpath/mypath/myfile&lt;BR /&gt;&lt;BR /&gt;The short version to achieve the same results as above... use pax.&lt;BR /&gt;&lt;BR /&gt;pax -r -p e -s '%^/%/newpath/%' -f tarfile.tar&lt;BR /&gt;&lt;BR /&gt;-denver</description>
    <pubDate>Fri, 09 May 2003 04:18:38 GMT</pubDate>
    <dc:creator>Denver Osborn</dc:creator>
    <dc:date>2003-05-09T04:18:38Z</dc:date>
    <item>
      <title>tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/2968918#M119942</link>
      <description>How to extract tar file to&lt;BR /&gt;assign directory?&lt;BR /&gt;&lt;BR /&gt;for ex: tar -xvf test.tar ??</description>
      <pubDate>Fri, 09 May 2003 00:49:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/2968918#M119942</guid>
      <dc:creator>j773303</dc:creator>
      <dc:date>2003-05-09T00:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/2968919#M119943</link>
      <description>You cannot extract tar to just any directory. If it has been created (the tar backup) with absolute path names it cannot be done.&lt;BR /&gt;If the backup was created as ./dir/file (example) then it can be extracted to any filesystem, but the directory hierarchy will also get created.&lt;BR /&gt;If you not sure run &lt;BR /&gt;&lt;BR /&gt;# tar tvf test.tar</description>
      <pubDate>Fri, 09 May 2003 00:58:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/2968919#M119943</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2003-05-09T00:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/2968920#M119944</link>
      <description>1) if you backup not using fullpath i.e&lt;BR /&gt;&lt;BR /&gt;cd /home/malay&lt;BR /&gt;tar cvf malay.tar *&lt;BR /&gt;&lt;BR /&gt;then you extract :&lt;BR /&gt;&lt;BR /&gt;cd /tmp/malay&lt;BR /&gt;tar xvf malay.tar&lt;BR /&gt;&lt;BR /&gt;all the file will be extracted to /tmp/malay&lt;BR /&gt;&lt;BR /&gt;2) if backup using fullpath i.e&lt;BR /&gt;&lt;BR /&gt;tar cvf malay.tar /home/malay&lt;BR /&gt;&lt;BR /&gt;then on recover if you do i.e&lt;BR /&gt;&lt;BR /&gt;cd /tmp/malay&lt;BR /&gt;tar xvf malay tar&lt;BR /&gt;&lt;BR /&gt;you file will be restored in /home/malay instead of /tmp/malay&lt;BR /&gt;&lt;BR /&gt;hope this help&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;mB&lt;BR /&gt;</description>
      <pubDate>Fri, 09 May 2003 01:01:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/2968920#M119944</guid>
      <dc:creator>malay boy</dc:creator>
      <dc:date>2003-05-09T01:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/2968921#M119945</link>
      <description>If the archive was created using the full paths, you could still extract the archive to an alternate location.&lt;BR /&gt;&lt;BR /&gt;# cp /sbin/tar /newpath&lt;BR /&gt;# cp tarfile.tar /newpath&lt;BR /&gt;# cd /newpath&lt;BR /&gt;# chroot ./ tar xvf tarfile.tar&lt;BR /&gt;&lt;BR /&gt;You can then remove /newpath/tar and tarfile.tar&lt;BR /&gt;&lt;BR /&gt;The files will be extracted relative to the new path. Instead of /mypath/myfile being extracted to the orignal location, it would now be /newpath/mypath/myfile&lt;BR /&gt;&lt;BR /&gt;The short version to achieve the same results as above... use pax.&lt;BR /&gt;&lt;BR /&gt;pax -r -p e -s '%^/%/newpath/%' -f tarfile.tar&lt;BR /&gt;&lt;BR /&gt;-denver</description>
      <pubDate>Fri, 09 May 2003 04:18:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/2968921#M119945</guid>
      <dc:creator>Denver Osborn</dc:creator>
      <dc:date>2003-05-09T04:18:38Z</dc:date>
    </item>
  </channel>
</rss>

