<?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/3313411#M186027</link>
    <description>what I did was,&lt;BR /&gt;&lt;BR /&gt;cd /dumps&lt;BR /&gt;tar -xvf /dev/rmt/0m &lt;BR /&gt;&lt;BR /&gt;My screen showed it extracting but when I looked in the /dumps directory I didn't see anything so I killed the process.&lt;BR /&gt;&lt;BR /&gt;It was tar'd by this command&lt;BR /&gt;&lt;BR /&gt;tar -cvf /dev/rmt/0m /usr</description>
    <pubDate>Wed, 23 Jun 2004 13:10:41 GMT</pubDate>
    <dc:creator>Eric Zumwalt_1</dc:creator>
    <dc:date>2004-06-23T13:10:41Z</dc:date>
    <item>
      <title>tar restore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-restore/m-p/3313407#M186023</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I'm trying to restore the /usr directory from tape using tar but I want to restore it to a different directory.  Could someone tell me the command to extract the /usr directory from tape to my /dumps directory.  &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Eric</description>
      <pubDate>Wed, 23 Jun 2004 13:01:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-restore/m-p/3313407#M186023</guid>
      <dc:creator>Eric Zumwalt_1</dc:creator>
      <dc:date>2004-06-23T13:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: tar restore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-restore/m-p/3313408#M186024</link>
      <description>It depends on how it was backed up.&lt;BR /&gt;&lt;BR /&gt;If it was done like:&lt;BR /&gt;&lt;BR /&gt;# tar -cvf /dev/rmt/?mn /usr&lt;BR /&gt;&lt;BR /&gt;Then you'll need to use pax and do some name substitution to do what you want.  'man pax' for more information.&lt;BR /&gt;&lt;BR /&gt;If it was done like:&lt;BR /&gt;&lt;BR /&gt;# tar -cvf /dev/rmt/?mn ./usr&lt;BR /&gt;or&lt;BR /&gt;# tar -cvf /dev/rmt/?mn usr&lt;BR /&gt;&lt;BR /&gt;Then just do:&lt;BR /&gt;&lt;BR /&gt;# cd /dumps&lt;BR /&gt;# tar -xvf /dev/rmt/?mn usr&lt;BR /&gt;or&lt;BR /&gt;# tar -xvf /dev/rmt/?mn ./usr</description>
      <pubDate>Wed, 23 Jun 2004 13:04:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-restore/m-p/3313408#M186024</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2004-06-23T13:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: tar restore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-restore/m-p/3313409#M186025</link>
      <description>The tar backup taken with absolute names would be difficult to restore to some ther path.&lt;BR /&gt;&lt;BR /&gt;GNU tar can take care of this. Get gnu tar and check if you can do that.&lt;BR /&gt;&lt;BR /&gt;The crude method would be as follows.&lt;BR /&gt;&lt;BR /&gt;cd /dumps&lt;BR /&gt;&lt;BR /&gt;pax -rv -s '/^\///' &amp;lt; /dev/rmt/0m&lt;BR /&gt;&lt;BR /&gt;Anil</description>
      <pubDate>Wed, 23 Jun 2004 13:04:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-restore/m-p/3313409#M186025</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2004-06-23T13:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: tar restore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-restore/m-p/3313410#M186026</link>
      <description>Hi Eric,&lt;BR /&gt;&lt;BR /&gt;  PAX is the way to go.&lt;BR /&gt;&lt;BR /&gt;  # mt -f /dev/rmt/0mn fsf 1&lt;BR /&gt;&lt;BR /&gt;  # cd /mnt&lt;BR /&gt;  &lt;BR /&gt;  # pax -rvf /dev/rmt/0mn -s '|^\/|\./|'&lt;BR /&gt;&lt;BR /&gt;Sundar</description>
      <pubDate>Wed, 23 Jun 2004 13:07:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-restore/m-p/3313410#M186026</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2004-06-23T13:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: tar restore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-restore/m-p/3313411#M186027</link>
      <description>what I did was,&lt;BR /&gt;&lt;BR /&gt;cd /dumps&lt;BR /&gt;tar -xvf /dev/rmt/0m &lt;BR /&gt;&lt;BR /&gt;My screen showed it extracting but when I looked in the /dumps directory I didn't see anything so I killed the process.&lt;BR /&gt;&lt;BR /&gt;It was tar'd by this command&lt;BR /&gt;&lt;BR /&gt;tar -cvf /dev/rmt/0m /usr</description>
      <pubDate>Wed, 23 Jun 2004 13:10:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-restore/m-p/3313411#M186027</guid>
      <dc:creator>Eric Zumwalt_1</dc:creator>
      <dc:date>2004-06-23T13:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: tar restore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-restore/m-p/3313412#M186028</link>
      <description>I missed this step in my posting.&lt;BR /&gt;&lt;BR /&gt;mt -f /dev/rmt/0mn fsf 1&lt;BR /&gt;&lt;BR /&gt;No points for this please.&lt;BR /&gt;&lt;BR /&gt;Anil</description>
      <pubDate>Wed, 23 Jun 2004 13:11:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-restore/m-p/3313412#M186028</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2004-06-23T13:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: tar restore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-restore/m-p/3313413#M186029</link>
      <description>You'll HAVE to use either pax or GNU Tar in this case.</description>
      <pubDate>Wed, 23 Jun 2004 13:12:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-restore/m-p/3313413#M186029</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2004-06-23T13:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: tar restore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-restore/m-p/3313414#M186030</link>
      <description>oops ! sorry, I assumed it is a ignite-ux recovery tape. Please skip the mt command.</description>
      <pubDate>Wed, 23 Jun 2004 13:12:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-restore/m-p/3313414#M186030</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2004-06-23T13:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: tar restore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-restore/m-p/3313415#M186031</link>
      <description>By the way, I hope this is a development machine or this was a VERY Recent backup tape as you just overwrote part of your /usr stuff.  Hopefully you won't suffer any ill effects from this.</description>
      <pubDate>Wed, 23 Jun 2004 13:13:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-restore/m-p/3313415#M186031</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2004-06-23T13:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: tar restore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-restore/m-p/3313416#M186032</link>
      <description>so even though I was in the /dumps directory when extracting the data it was really extracting into my current /usr directory?</description>
      <pubDate>Wed, 23 Jun 2004 13:20:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-restore/m-p/3313416#M186032</guid>
      <dc:creator>Eric Zumwalt_1</dc:creator>
      <dc:date>2004-06-23T13:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: tar restore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-restore/m-p/3313417#M186033</link>
      <description>That is because, you had taken backup with absolute path names.&lt;BR /&gt;&lt;BR /&gt;You took it as tar -cvf /dev/rmt/0m /usr&lt;BR /&gt;&lt;BR /&gt;You should have done tar -cvf /dev/rmt/0m ./usr OR usr&lt;BR /&gt;&lt;BR /&gt;Anil</description>
      <pubDate>Wed, 23 Jun 2004 13:22:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-restore/m-p/3313417#M186033</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2004-06-23T13:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: tar restore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-restore/m-p/3313418#M186034</link>
      <description>Hi Eric,&lt;BR /&gt;&lt;BR /&gt;  Yes, your tar command effectively extracted the contents to /usr file system.&lt;BR /&gt;&lt;BR /&gt;  With tar,if you create the archive with absolute path, tar -xvf will always restore the contents to the absolute path. You will have to use pax or GNU tar.&lt;BR /&gt;&lt;BR /&gt;  Here, since you created the archive using the absolute path (tar -cvf /dev/rmt/0m /usr), tar -xvf will always restore the files to /usr.&lt;BR /&gt; &lt;BR /&gt;  How recent was the archive ? What prompted the need for restoring /usr file system from the tape ? were there any signification changes to the system after the archive was created (like installation of sw/patches etc).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-- Sundar.&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Jun 2004 13:26:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-restore/m-p/3313418#M186034</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2004-06-23T13:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: tar restore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-restore/m-p/3313419#M186035</link>
      <description>Well we needed some data from a different company.  They had it stored on there /usr directory.  So when I tried to extract that /usr directory it looks like it overwrote some directories in my /usr directory.  like the bin and sbin directories.  So now I'm going to have restore those.</description>
      <pubDate>Wed, 23 Jun 2004 13:37:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-restore/m-p/3313419#M186035</guid>
      <dc:creator>Eric Zumwalt_1</dc:creator>
      <dc:date>2004-06-23T13:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: tar restore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-restore/m-p/3313420#M186036</link>
      <description>Anyone know where the license file is located?  What directory?  I went from Unlimited user license to a two user license.</description>
      <pubDate>Wed, 23 Jun 2004 13:51:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-restore/m-p/3313420#M186036</guid>
      <dc:creator>Eric Zumwalt_1</dc:creator>
      <dc:date>2004-06-23T13:51:14Z</dc:date>
    </item>
  </channel>
</rss>

