<?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 question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-question/m-p/3371075#M868147</link>
    <description>Simon,&lt;BR /&gt;&lt;BR /&gt;   Nope the above syntax wont work for you&lt;BR /&gt;&lt;BR /&gt;   tar -cvf log.tar /var/adm/Log_Files&lt;BR /&gt;&lt;BR /&gt;-- Sundar.</description>
    <pubDate>Thu, 02 Sep 2004 11:49:52 GMT</pubDate>
    <dc:creator>Sundar_7</dc:creator>
    <dc:date>2004-09-02T11:49:52Z</dc:date>
    <item>
      <title>tar question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-question/m-p/3371074#M868146</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;I have a directory with many log files I need to send someone. These are in /var/adm/Log_Files and I have cd /var/adm.&lt;BR /&gt;&lt;BR /&gt;What I want to do is tar this directory up from /var/adm how do I go about this.&lt;BR /&gt;Is the command tar -cvf /var/adm/Log_Files log.tar&lt;BR /&gt;&lt;BR /&gt; Thanks&lt;BR /&gt; Simon</description>
      <pubDate>Thu, 02 Sep 2004 11:45:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-question/m-p/3371074#M868146</guid>
      <dc:creator>simon peter wickham_1</dc:creator>
      <dc:date>2004-09-02T11:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: tar question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-question/m-p/3371075#M868147</link>
      <description>Simon,&lt;BR /&gt;&lt;BR /&gt;   Nope the above syntax wont work for you&lt;BR /&gt;&lt;BR /&gt;   tar -cvf log.tar /var/adm/Log_Files&lt;BR /&gt;&lt;BR /&gt;-- Sundar.</description>
      <pubDate>Thu, 02 Sep 2004 11:49:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-question/m-p/3371075#M868147</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2004-09-02T11:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: tar question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-question/m-p/3371076#M868148</link>
      <description>Hi Simon,&lt;BR /&gt;&lt;BR /&gt;If you want to tar it up with absolute path name, then it would be&lt;BR /&gt;&lt;BR /&gt;tar cvf log.tar /var/adm/Log_files&lt;BR /&gt;&lt;BR /&gt;Ensure you have enough space in the current directory (it can be anything). When you untar it, it will create a directory /var/adm/Log_files (if it doesn't exist) and restore the files.&lt;BR /&gt;&lt;BR /&gt;If you want the relative path, then&lt;BR /&gt;&lt;BR /&gt;cd /var/adm&lt;BR /&gt;tar cvf log.tar Log_files&lt;BR /&gt;&lt;BR /&gt;When you untar it, it will create Log_files directory (if it doesn't exist) in the current directory and untar the files. &lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Thu, 02 Sep 2004 11:50:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-question/m-p/3371076#M868148</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-09-02T11:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: tar question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-question/m-p/3371077#M868149</link>
      <description>no, you have the definitions the wrong way around&lt;BR /&gt;It should be:&lt;BR /&gt;tar -cvf log.tar /var/adm/Log_Files&lt;BR /&gt;However, this means that whoever extracts these files is forced to put them back in the same directory structure.&lt;BR /&gt;why not do:&lt;BR /&gt;cd /var/adm/Log_Files&lt;BR /&gt;tar cvf /tmp/log.tar *&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Sep 2004 11:52:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-question/m-p/3371077#M868149</guid>
      <dc:creator>melvyn burnard</dc:creator>
      <dc:date>2004-09-02T11:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: tar question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-question/m-p/3371078#M868150</link>
      <description>Thanks for the help.</description>
      <pubDate>Thu, 02 Sep 2004 12:14:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-question/m-p/3371078#M868150</guid>
      <dc:creator>simon peter wickham_1</dc:creator>
      <dc:date>2004-09-02T12:14:09Z</dc:date>
    </item>
  </channel>
</rss>

