<?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: make_tape_recovery in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/make-tape-recovery/m-p/2883288#M101421</link>
    <description>Hello,&lt;BR /&gt;&lt;BR /&gt;the only problem with standard HP-UX tar is that it extracts the directory ONLY e.g. a&lt;BR /&gt;&lt;BR /&gt;tar xvf /dev/rmt/0m /home/myhome/scripts&lt;BR /&gt;&lt;BR /&gt;would re-create an empty scripts dir but not the script files that are in it (and I bet that is what you really want).&lt;BR /&gt;&lt;BR /&gt;So one (inefficient) way is to read the tarfile (tar tvf) and write the filelist to a file on disk which you use as a basis for a script that extracts all files.&lt;BR /&gt;&lt;BR /&gt;The easy solution is to get GNU-tar, which allows you to extract a directory with everything in it from tarfile.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Bernhard</description>
    <pubDate>Fri, 17 Jan 2003 09:41:24 GMT</pubDate>
    <dc:creator>Bernhard Mueller</dc:creator>
    <dc:date>2003-01-17T09:41:24Z</dc:date>
    <item>
      <title>make_tape_recovery</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/make-tape-recovery/m-p/2883284#M101417</link>
      <description>Dear All,&lt;BR /&gt;&lt;BR /&gt;I have backup tape made by Make_tape_recovery command.&lt;BR /&gt;Is it possible to extract only one directory from this tape and restor it to original location. &lt;BR /&gt;</description>
      <pubDate>Thu, 16 Jan 2003 08:27:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/make-tape-recovery/m-p/2883284#M101417</guid>
      <dc:creator>Goran Kubelka</dc:creator>
      <dc:date>2003-01-16T08:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: make_tape_recovery</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/make-tape-recovery/m-p/2883285#M101418</link>
      <description>yes it is.&lt;BR /&gt;&lt;BR /&gt;load the tape&lt;BR /&gt;# mt -t /dev/rmt/0mn fsf 1&lt;BR /&gt;&lt;BR /&gt;e.g. to get the /home/fred directory (provided it is on the tape and assuming your tape drive is 0m)&lt;BR /&gt;# cd /&lt;BR /&gt;# tar xvf /dev/rmt/0mn home/fred&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Jan 2003 08:36:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/make-tape-recovery/m-p/2883285#M101418</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2003-01-16T08:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: make_tape_recovery</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/make-tape-recovery/m-p/2883286#M101419</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;you have to skip the LIF header with&lt;BR /&gt;&lt;BR /&gt;  mt -f /dev/rmt/0mn rew&lt;BR /&gt;&lt;BR /&gt;  mt -f /dev/rmt/0mn fsf 1&lt;BR /&gt;&lt;BR /&gt;(use your own correct tape device file if different from /dev/rmt/0mn)&lt;BR /&gt;&lt;BR /&gt;Then you can use tar to extract files/directories from the archive.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Birgit</description>
      <pubDate>Thu, 16 Jan 2003 08:37:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/make-tape-recovery/m-p/2883286#M101419</guid>
      <dc:creator>Birgit Federmann</dc:creator>
      <dc:date>2003-01-16T08:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: make_tape_recovery</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/make-tape-recovery/m-p/2883287#M101420</link>
      <description>mt -f /dev/rmt/0mn fsf 1&lt;BR /&gt;tar -tvf /dev/rmt/0m &amp;gt; ./list&lt;BR /&gt;&lt;BR /&gt;check list and file you want to restore.&lt;BR /&gt;again mt -f /dev/rmt/0mn fsf 1&lt;BR /&gt;cd /tmp&lt;BR /&gt;&lt;BR /&gt;tar -xvf /dev/rmt/0mn you_file&lt;BR /&gt;&lt;BR /&gt;move this file to original location after through check.&lt;BR /&gt;&lt;BR /&gt;you may get error as end of tape reached.</description>
      <pubDate>Thu, 16 Jan 2003 08:39:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/make-tape-recovery/m-p/2883287#M101420</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2003-01-16T08:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: make_tape_recovery</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/make-tape-recovery/m-p/2883288#M101421</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;the only problem with standard HP-UX tar is that it extracts the directory ONLY e.g. a&lt;BR /&gt;&lt;BR /&gt;tar xvf /dev/rmt/0m /home/myhome/scripts&lt;BR /&gt;&lt;BR /&gt;would re-create an empty scripts dir but not the script files that are in it (and I bet that is what you really want).&lt;BR /&gt;&lt;BR /&gt;So one (inefficient) way is to read the tarfile (tar tvf) and write the filelist to a file on disk which you use as a basis for a script that extracts all files.&lt;BR /&gt;&lt;BR /&gt;The easy solution is to get GNU-tar, which allows you to extract a directory with everything in it from tarfile.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Bernhard</description>
      <pubDate>Fri, 17 Jan 2003 09:41:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/make-tape-recovery/m-p/2883288#M101421</guid>
      <dc:creator>Bernhard Mueller</dc:creator>
      <dc:date>2003-01-17T09:41:24Z</dc:date>
    </item>
  </channel>
</rss>

