<?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 help in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-help/m-p/3668207#M797574</link>
    <description>You are having absolute path from / directory. You can do like that.&lt;BR /&gt;&lt;BR /&gt;# tar -tvf &lt;TARFILE&gt;&lt;BR /&gt;&lt;BR /&gt;You can get details. If it is absolute then move /opt contents related with tarfile with .old notation.&lt;BR /&gt;&lt;BR /&gt;Extract contents and then move it to /tmp/opt. You can not move with tar to all files.&lt;BR /&gt;&lt;BR /&gt;hth.&lt;/TARFILE&gt;</description>
    <pubDate>Thu, 10 Nov 2005 01:57:49 GMT</pubDate>
    <dc:creator>Muthukumar_5</dc:creator>
    <dc:date>2005-11-10T01:57:49Z</dc:date>
    <item>
      <title>tar help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-help/m-p/3668203#M797570</link>
      <description>Here is the scenario:&lt;BR /&gt;&lt;BR /&gt;A tar file (of /opt) was coptied from one system to another. &lt;BR /&gt;&lt;BR /&gt;I want to untar this file to a directory say /tmp/opt instead of overwriting my /opt directory.&lt;BR /&gt;&lt;BR /&gt;Can this be done?&lt;BR /&gt;What is the syntax I can use?&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;&lt;BR /&gt;Randy</description>
      <pubDate>Wed, 09 Nov 2005 15:43:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-help/m-p/3668203#M797570</guid>
      <dc:creator>Randy_121</dc:creator>
      <dc:date>2005-11-09T15:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: tar help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-help/m-p/3668204#M797571</link>
      <description>In general, backups with absolute pathnames are less than wise. With tar, unless you do some tricky chroot's, you are stuck. However, you can use the pax command (which understands tar, cpio, and pax formats) to restore the files with different pathnames. Man pax for details and pay attention to the -s option.</description>
      <pubDate>Wed, 09 Nov 2005 15:53:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-help/m-p/3668204#M797571</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-11-09T15:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: tar help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-help/m-p/3668205#M797572</link>
      <description>How was this tar created - with absolute path or relative path?&lt;BR /&gt;&lt;BR /&gt;Relative path, you were in the /opt directory and issued the tar command.&lt;BR /&gt;tar -cvf mytarball.tar *&lt;BR /&gt;&lt;BR /&gt;In this case, you can go into the /tmp/opt directory and do the 'tar -xvf mytarball.tar'&lt;BR /&gt;&lt;BR /&gt;If absolute path, you issued the tar command as such;&lt;BR /&gt;'tar -cvf /opt'&lt;BR /&gt;&lt;BR /&gt;In this case, doing an un-tar will overwrite the /opt directory, not a wise idea. Doesn't matter what the CWD is.&lt;BR /&gt;&lt;BR /&gt;If you have an absolute tarball, you can use the 'pax' utility</description>
      <pubDate>Wed, 09 Nov 2005 15:54:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-help/m-p/3668205#M797572</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2005-11-09T15:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: tar help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-help/m-p/3668206#M797573</link>
      <description>I don't have HP-UX to test but some tar implementations have an option to strip the initial / from the file names when restoring.&lt;BR /&gt;&lt;BR /&gt;In Tru64 is "s" option. If you don't have that option, you should create the tarfile using relative path.&lt;BR /&gt;&lt;BR /&gt;cd /opt&lt;BR /&gt;tar cvf /backup/tarfile ./*</description>
      <pubDate>Wed, 09 Nov 2005 16:00:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-help/m-p/3668206#M797573</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2005-11-09T16:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: tar help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-help/m-p/3668207#M797574</link>
      <description>You are having absolute path from / directory. You can do like that.&lt;BR /&gt;&lt;BR /&gt;# tar -tvf &lt;TARFILE&gt;&lt;BR /&gt;&lt;BR /&gt;You can get details. If it is absolute then move /opt contents related with tarfile with .old notation.&lt;BR /&gt;&lt;BR /&gt;Extract contents and then move it to /tmp/opt. You can not move with tar to all files.&lt;BR /&gt;&lt;BR /&gt;hth.&lt;/TARFILE&gt;</description>
      <pubDate>Thu, 10 Nov 2005 01:57:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-help/m-p/3668207#M797574</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-11-10T01:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: tar help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-help/m-p/3668208#M797575</link>
      <description>U can follow the TAR to restore the contents from othere server to where u want to restore .&lt;BR /&gt;&lt;BR /&gt;I had experiance of restoring the /usr directory from one server  to other server where /usr tampered .&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I suggest you to restore it in /tmp location then check the file permissions are Ok .. If it's OK &lt;BR /&gt;&lt;BR /&gt;Proceed to do a TAR in absolute path</description>
      <pubDate>Thu, 10 Nov 2005 02:07:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-help/m-p/3668208#M797575</guid>
      <dc:creator>KVK</dc:creator>
      <dc:date>2005-11-10T02:07:08Z</dc:date>
    </item>
  </channel>
</rss>

