<?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: Using pax command (to restore files) in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/using-pax-command/m-p/6026419#M483818</link>
    <description>&lt;P&gt;&amp;gt;not sure how to just recover one file or directory from the back up tape.&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas"&gt;&amp;gt;pax -v -f /dev/rmt/0m # &lt;FONT face="Consolas"&gt;List the items on the tape&lt;/FONT&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;You look at the output of the listing above and use that name.&amp;nbsp; If you want /home/foo/bar.out and directory &lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;/home/foo&lt;/FONT&gt;&lt;/FONT&gt;/SUB1:&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas"&gt;pax -r -v -pe -f /dev/rmt/0m &lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;/home/foo/bar.out &lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;/home/foo&lt;/FONT&gt;&lt;/FONT&gt;/SUB1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;Since you used an absolute path to store the files, you will get the files back in the same path unless you use the -s option:&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas"&gt;pax -r -v -k -pe -f /dev/rmt/0m -s&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;:/home/foo/:: &lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;/home/foo/&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;bar.out &lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;/home/foo&lt;/FONT&gt;&lt;/FONT&gt;/SUB1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;Use -k to make sure you have your -s patterns correct.&amp;nbsp; Also use a small archive to disk to make sure you are familiar with the options.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Apr 2013 02:40:59 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2013-04-11T02:40:59Z</dc:date>
    <item>
      <title>Using Pax command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-pax-command/m-p/6026027#M483817</link>
      <description>&lt;P&gt;I want to learn how to extract just a single file from my tapes using the pax command. As of right now I have been using these command to write, list, and recover my data but am not sure how to just recover one file or directory from the back up tape. Does any one have any solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas"&gt;- Back up your files system&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas"&gt;pax -vwf /dev/rmt/0m /home&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas"&gt;- List the items on the disk&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas"&gt;pax -f /dev/rmt/0m -v&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas"&gt;- Extract your files from the disk&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas"&gt;pax -r -pe -f /dev/rmt/0m&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;P.S. This thread has been moved&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;from Your Questions Regarding ITRC Forums (Legacy ITRC forum) to HP-UX &amp;gt; sysadmin - HP Forums Moderator&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2013 03:05:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-pax-command/m-p/6026027#M483817</guid>
      <dc:creator>dx12180</dc:creator>
      <dc:date>2013-04-11T03:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using pax command (to restore files)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-pax-command/m-p/6026419#M483818</link>
      <description>&lt;P&gt;&amp;gt;not sure how to just recover one file or directory from the back up tape.&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas"&gt;&amp;gt;pax -v -f /dev/rmt/0m # &lt;FONT face="Consolas"&gt;List the items on the tape&lt;/FONT&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;You look at the output of the listing above and use that name.&amp;nbsp; If you want /home/foo/bar.out and directory &lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;/home/foo&lt;/FONT&gt;&lt;/FONT&gt;/SUB1:&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas"&gt;pax -r -v -pe -f /dev/rmt/0m &lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;/home/foo/bar.out &lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;/home/foo&lt;/FONT&gt;&lt;/FONT&gt;/SUB1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;Since you used an absolute path to store the files, you will get the files back in the same path unless you use the -s option:&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas"&gt;pax -r -v -k -pe -f /dev/rmt/0m -s&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;:/home/foo/:: &lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;/home/foo/&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;bar.out &lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;/home/foo&lt;/FONT&gt;&lt;/FONT&gt;/SUB1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;&lt;FONT face="Consolas"&gt;Use -k to make sure you have your -s patterns correct.&amp;nbsp; Also use a small archive to disk to make sure you are familiar with the options.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2013 02:40:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-pax-command/m-p/6026419#M483818</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2013-04-11T02:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using pax command (to restore files)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-pax-command/m-p/6026979#M483821</link>
      <description>Thanks will monkey around with it and let you know!</description>
      <pubDate>Thu, 11 Apr 2013 13:40:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-pax-command/m-p/6026979#M483821</guid>
      <dc:creator>dx12180</dc:creator>
      <dc:date>2013-04-11T13:40:48Z</dc:date>
    </item>
  </channel>
</rss>

