<?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 extracting absolute path archive in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/extracting-absolute-path-archive/m-p/2805287#M82880</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have a tar archive that I need to extract that uses an absolute path that conflicts with an absolute path I already have on my system and don't want to disrupt.&lt;BR /&gt;&lt;BR /&gt;Does anyone know how to extract a tar archive so that the absolute path can be placed relative to some other higher level path, or am I hosed?&lt;BR /&gt;&lt;BR /&gt;- allan</description>
    <pubDate>Thu, 12 Sep 2002 16:12:07 GMT</pubDate>
    <dc:creator>Allan Pincus</dc:creator>
    <dc:date>2002-09-12T16:12:07Z</dc:date>
    <item>
      <title>extracting absolute path archive</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extracting-absolute-path-archive/m-p/2805287#M82880</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have a tar archive that I need to extract that uses an absolute path that conflicts with an absolute path I already have on my system and don't want to disrupt.&lt;BR /&gt;&lt;BR /&gt;Does anyone know how to extract a tar archive so that the absolute path can be placed relative to some other higher level path, or am I hosed?&lt;BR /&gt;&lt;BR /&gt;- allan</description>
      <pubDate>Thu, 12 Sep 2002 16:12:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extracting-absolute-path-archive/m-p/2805287#M82880</guid>
      <dc:creator>Allan Pincus</dc:creator>
      <dc:date>2002-09-12T16:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: extracting absolute path archive</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extracting-absolute-path-archive/m-p/2805288#M82881</link>
      <description>Yet another reason never to use absolute paths.&lt;BR /&gt;&lt;BR /&gt;I believe that 'pax' can deal with this.  pax is a utility that can read or write tar and cpio archives.  There is some built in functionality that will allow you to do things with the path of the files as your restore.&lt;BR /&gt;&lt;BR /&gt;Do a 'man pax' for more information and examples.</description>
      <pubDate>Thu, 12 Sep 2002 16:20:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extracting-absolute-path-archive/m-p/2805288#M82881</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2002-09-12T16:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: extracting absolute path archive</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extracting-absolute-path-archive/m-p/2805289#M82882</link>
      <description>&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x589bd5fab40ed6118ff40090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x589bd5fab40ed6118ff40090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;says to try using pax:&lt;BR /&gt;"If you created the tar file using relative pathnames for the input files, tar will extract the files to locations relative to your current directory. &lt;BR /&gt;&lt;BR /&gt;If you created the tar file using absolute pathnames for the input files, tar will extract the files to that absolute path. &lt;BR /&gt;&lt;BR /&gt;An alternative for changing the extract destination for a tar file created with absolute pathnames is to use pax. An example is: &lt;BR /&gt;&lt;BR /&gt;tar cvf /tmp/users.tar /home/users &lt;BR /&gt;&lt;BR /&gt;tar xvf /tmp/users.tar &lt;BR /&gt;will extract files back to their original locations because the input file/dir was specified with an absolute pathname (/home/users) &lt;BR /&gt;&lt;BR /&gt;pax -r -s,/home/users,/home/users2, -f /tmp/users.tar &lt;BR /&gt;will extract files changing /home/users to /home/users2 &lt;BR /&gt;&lt;BR /&gt;See the man page for more info. "&lt;BR /&gt;&lt;BR /&gt;Cheryl</description>
      <pubDate>Thu, 12 Sep 2002 16:20:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extracting-absolute-path-archive/m-p/2805289#M82882</guid>
      <dc:creator>Cheryl Griffin</dc:creator>
      <dc:date>2002-09-12T16:20:35Z</dc:date>
    </item>
  </channel>
</rss>

