<?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 restore in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-restore/m-p/3270293#M178510</link>
    <description>Hi Alfons,&lt;BR /&gt;&lt;BR /&gt;If you have all files inside a directory tree, you can restore it with:&lt;BR /&gt;&lt;BR /&gt;tar xvf device directory_name&lt;BR /&gt;&lt;BR /&gt;if not, you can list all files from the tape in a text file, then recover only what you want:&lt;BR /&gt;&lt;BR /&gt;tar tf device &amp;gt; list_tar.txt&lt;BR /&gt;&lt;BR /&gt;once you have list_tar.txt you can do:&lt;BR /&gt;&lt;BR /&gt;cat list_tar.txt | grep 040505| xargs tar xvf device&lt;BR /&gt;&lt;BR /&gt;The xargs is mandatory because it is possible to have a very long list of files and obtain a wrong number of arguments error.&lt;BR /&gt;&lt;BR /&gt;Frank.&lt;BR /&gt;</description>
    <pubDate>Fri, 07 May 2004 01:54:12 GMT</pubDate>
    <dc:creator>Francisco J. Soler</dc:creator>
    <dc:date>2004-05-07T01:54:12Z</dc:date>
    <item>
      <title>tar restore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-restore/m-p/3270287#M178504</link>
      <description>Hello all,&lt;BR /&gt;&lt;BR /&gt;I want to do a restore of multiple files from a tarfile.&lt;BR /&gt;I cannot use wildcards *, so how can I restore all files in the tar file starting with say 040505?&lt;BR /&gt;Perhaps with some kind of script?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance, Alfons</description>
      <pubDate>Fri, 07 May 2004 01:16:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-restore/m-p/3270287#M178504</guid>
      <dc:creator>A.G.M. Velthof</dc:creator>
      <dc:date>2004-05-07T01:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: tar restore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-restore/m-p/3270288#M178505</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;try this at the directory where you want to "untar":&lt;BR /&gt;# tar -xwf &lt;YOUR_TAR_FILE&gt;&lt;BR /&gt;&lt;BR /&gt;the "w" option causes an interactive tar session in which you are asked to confirm restore for each file with either a "y" or "n". Slow but safe.&lt;BR /&gt;&lt;BR /&gt;regards.&lt;/YOUR_TAR_FILE&gt;</description>
      <pubDate>Fri, 07 May 2004 01:23:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-restore/m-p/3270288#M178505</guid>
      <dc:creator>Joseph Loo</dc:creator>
      <dc:date>2004-05-07T01:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: tar restore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-restore/m-p/3270289#M178506</link>
      <description>Hello Joseph,&lt;BR /&gt;&lt;BR /&gt;Because the archive contains thousands of little files and I need twenty of them your solution does not work for me.&lt;BR /&gt;&lt;BR /&gt;Greetings, Alfons</description>
      <pubDate>Fri, 07 May 2004 01:39:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-restore/m-p/3270289#M178506</guid>
      <dc:creator>A.G.M. Velthof</dc:creator>
      <dc:date>2004-05-07T01:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: tar restore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-restore/m-p/3270290#M178507</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try this,&lt;BR /&gt;&lt;BR /&gt;tar tf /dev/rmt/0m | grep 040505 | xargs tar xvf /dev/rmt/0m&lt;BR /&gt;&lt;BR /&gt;This will restore all files that has 040505 anywhere within the name of the file or the directory. You can try with grep "/040505" and it might help in extracting only files and directories starting with 040505.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 07 May 2004 01:40:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-restore/m-p/3270290#M178507</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2004-05-07T01:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: tar restore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-restore/m-p/3270291#M178508</link>
      <description>This might be a little low tech but if you know the names of the twenty you need&lt;BR /&gt; &lt;BR /&gt;tar xvf /dev/whatever file1 file2 file3 ...</description>
      <pubDate>Fri, 07 May 2004 01:49:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-restore/m-p/3270291#M178508</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-05-07T01:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: tar restore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-restore/m-p/3270292#M178509</link>
      <description>Hello Sanjaj,&lt;BR /&gt;&lt;BR /&gt;it works fine, thanks.&lt;BR /&gt;&lt;BR /&gt;Greetings, Alfons</description>
      <pubDate>Fri, 07 May 2004 01:54:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-restore/m-p/3270292#M178509</guid>
      <dc:creator>A.G.M. Velthof</dc:creator>
      <dc:date>2004-05-07T01:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: tar restore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-restore/m-p/3270293#M178510</link>
      <description>Hi Alfons,&lt;BR /&gt;&lt;BR /&gt;If you have all files inside a directory tree, you can restore it with:&lt;BR /&gt;&lt;BR /&gt;tar xvf device directory_name&lt;BR /&gt;&lt;BR /&gt;if not, you can list all files from the tape in a text file, then recover only what you want:&lt;BR /&gt;&lt;BR /&gt;tar tf device &amp;gt; list_tar.txt&lt;BR /&gt;&lt;BR /&gt;once you have list_tar.txt you can do:&lt;BR /&gt;&lt;BR /&gt;cat list_tar.txt | grep 040505| xargs tar xvf device&lt;BR /&gt;&lt;BR /&gt;The xargs is mandatory because it is possible to have a very long list of files and obtain a wrong number of arguments error.&lt;BR /&gt;&lt;BR /&gt;Frank.&lt;BR /&gt;</description>
      <pubDate>Fri, 07 May 2004 01:54:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-restore/m-p/3270293#M178510</guid>
      <dc:creator>Francisco J. Soler</dc:creator>
      <dc:date>2004-05-07T01:54:12Z</dc:date>
    </item>
  </channel>
</rss>

