<?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: Extract data that exclude some directories using tar command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/extract-data-that-exclude-some-directories-using-tar-command/m-p/2991987#M124563</link>
    <description>Hi,&lt;BR /&gt;  There is no option in tar to exclude selected directories.&lt;BR /&gt; You can do it on the other way by selecting whatever the directories to be extracted.&lt;BR /&gt;You first create a list of files archived and extract the directories whatever u required from the list.&lt;BR /&gt;&lt;BR /&gt;1. #tar -tvf /dev/rmt/1m &amp;gt;logfile&lt;BR /&gt;&lt;BR /&gt;2.#tar -xvf /dev/rmt/1m /usr1 /usr2&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;</description>
    <pubDate>Mon, 09 Jun 2003 08:25:40 GMT</pubDate>
    <dc:creator>V.Tamilvanan</dc:creator>
    <dc:date>2003-06-09T08:25:40Z</dc:date>
    <item>
      <title>Extract data that exclude some directories using tar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extract-data-that-exclude-some-directories-using-tar-command/m-p/2991986#M124562</link>
      <description>Dear all,&lt;BR /&gt;&lt;BR /&gt;I want to use tar extracting data from tape that exclude some directories. Could you tell me how I can do it?&lt;BR /&gt;Thanks very much.&lt;BR /&gt;&lt;BR /&gt;Best Regards&lt;BR /&gt;Ajk</description>
      <pubDate>Mon, 09 Jun 2003 08:20:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extract-data-that-exclude-some-directories-using-tar-command/m-p/2991986#M124562</guid>
      <dc:creator>ajk_5</dc:creator>
      <dc:date>2003-06-09T08:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Extract data that exclude some directories using tar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extract-data-that-exclude-some-directories-using-tar-command/m-p/2991987#M124563</link>
      <description>Hi,&lt;BR /&gt;  There is no option in tar to exclude selected directories.&lt;BR /&gt; You can do it on the other way by selecting whatever the directories to be extracted.&lt;BR /&gt;You first create a list of files archived and extract the directories whatever u required from the list.&lt;BR /&gt;&lt;BR /&gt;1. #tar -tvf /dev/rmt/1m &amp;gt;logfile&lt;BR /&gt;&lt;BR /&gt;2.#tar -xvf /dev/rmt/1m /usr1 /usr2&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Jun 2003 08:25:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extract-data-that-exclude-some-directories-using-tar-command/m-p/2991987#M124563</guid>
      <dc:creator>V.Tamilvanan</dc:creator>
      <dc:date>2003-06-09T08:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Extract data that exclude some directories using tar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extract-data-that-exclude-some-directories-using-tar-command/m-p/2991988#M124564</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;believe you can use pax,&lt;BR /&gt;&lt;BR /&gt;# pax -pe -rvf /tarfile.tar  -s '/^\///' /dir1 /dir2&lt;BR /&gt;&lt;BR /&gt;Look at the man page of pax.&lt;BR /&gt;&lt;BR /&gt;Hope it helps,&lt;BR /&gt;&lt;BR /&gt;Robert-Jan.&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Jun 2003 08:26:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extract-data-that-exclude-some-directories-using-tar-command/m-p/2991988#M124564</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2003-06-09T08:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Extract data that exclude some directories using tar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extract-data-that-exclude-some-directories-using-tar-command/m-p/2991989#M124565</link>
      <description>Try the tar download from the "Software Porting And Archive Centre for HP-UX" from below link.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Gnu/tar-1.13.25/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Gnu/tar-1.13.25/&lt;/A&gt;</description>
      <pubDate>Mon, 09 Jun 2003 08:39:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extract-data-that-exclude-some-directories-using-tar-command/m-p/2991989#M124565</guid>
      <dc:creator>Mad_1</dc:creator>
      <dc:date>2003-06-09T08:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Extract data that exclude some directories using tar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extract-data-that-exclude-some-directories-using-tar-command/m-p/2991990#M124566</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;you can do this using GNU tar, look at the URL given by Mad</description>
      <pubDate>Mon, 09 Jun 2003 08:42:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extract-data-that-exclude-some-directories-using-tar-command/m-p/2991990#M124566</guid>
      <dc:creator>Ravi_8</dc:creator>
      <dc:date>2003-06-09T08:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Extract data that exclude some directories using tar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extract-data-that-exclude-some-directories-using-tar-command/m-p/2991991#M124567</link>
      <description>There's no way to do this using tar exactly.  What you can do is extract the filenames into a text file, then edit the text file and delete out the files you don't want.  Then you can use that text file as an argument to another tar command:&lt;BR /&gt;tar tvf /dev/rmt/0&amp;gt;/tmp/tarnames&lt;BR /&gt;vi /tmp/tarnames&lt;BR /&gt;tar xvf /dev/rmt/0 `cat /tmp/tarnames`&lt;BR /&gt;&lt;BR /&gt;Other tar variants can do this as you want it to: Backup Edge, a 3rd party product, is one of them.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Mon, 09 Jun 2003 14:32:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extract-data-that-exclude-some-directories-using-tar-command/m-p/2991991#M124567</guid>
      <dc:creator>Chris Vail</dc:creator>
      <dc:date>2003-06-09T14:32:14Z</dc:date>
    </item>
  </channel>
</rss>

