<?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: Simple tar issue in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-tar-issue/m-p/4843955#M393522</link>
    <description>You have copied the files using absolute path it seems so you should be ok with your present tar command. &lt;BR /&gt;Try tar -tvf /dev/rmt/0m  | grep filename . where filename is the file you want .Suppose the output is $filename with all the path appended. After that give &lt;BR /&gt;tar -xvf $filename ( $filename is exactly as it shows from above output).&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;Good luck</description>
    <pubDate>Thu, 08 Feb 2001 00:27:25 GMT</pubDate>
    <dc:creator>Jitendra_1</dc:creator>
    <dc:date>2001-02-08T00:27:25Z</dc:date>
    <item>
      <title>Simple tar issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-tar-issue/m-p/4843952#M393519</link>
      <description>Hello, sorry I am posting such a minor issue, but I need some quick advice.  I use fbackup but have some archived tar tapes that I want to extract a file from.  My experience with tar is minimal so please be kind (I did check the man and rtfm'ed the manuals we have...)&lt;BR /&gt;&lt;BR /&gt;I use this syntax:&lt;BR /&gt;tar -xvf /dev/rmt/0m  /path/path/path/file&lt;BR /&gt;&lt;BR /&gt;I get a msg (and no file):&lt;BR /&gt;tar tape error (5)&lt;BR /&gt;&lt;BR /&gt;I can extract a listing and the file does exist on the tape.&lt;BR /&gt;&lt;BR /&gt;tia!!!&lt;BR /&gt;&lt;BR /&gt;Doug&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Feb 2001 23:12:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simple-tar-issue/m-p/4843952#M393519</guid>
      <dc:creator>Doug_3</dc:creator>
      <dc:date>2001-02-07T23:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Simple tar issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-tar-issue/m-p/4843953#M393520</link>
      <description>Can you post what command you used for tape listing and what was the output. I suspect the tape might have files with relative pathnames like "./path/path/path/file" . Can you try extracting it this way? is the tape device file /dev/rmt/0m for sure?</description>
      <pubDate>Wed, 07 Feb 2001 23:43:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simple-tar-issue/m-p/4843953#M393520</guid>
      <dc:creator>Jitendra_1</dc:creator>
      <dc:date>2001-02-07T23:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Simple tar issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-tar-issue/m-p/4843954#M393521</link>
      <description>Hermant,&lt;BR /&gt;&lt;BR /&gt;The original command was:&lt;BR /&gt;tar -cvf /dev/rmt/0m *&lt;BR /&gt;&lt;BR /&gt;and a second tape was&lt;BR /&gt;tar -cvf /dev/rmt/0m  path1  path2  path3/path4&lt;BR /&gt;&lt;BR /&gt;My command was&lt;BR /&gt;&lt;BR /&gt;tar -xvf /dev/rmt/0m /path1/filename&lt;BR /&gt;&lt;BR /&gt;is my problem the addition of the absolute path "/" and the syntax SHOULD be&lt;BR /&gt;&lt;BR /&gt;tar -xvf /dev/rmt/0m path/filename&lt;BR /&gt;&lt;BR /&gt;tia&lt;BR /&gt;&lt;BR /&gt;Doug</description>
      <pubDate>Thu, 08 Feb 2001 00:07:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simple-tar-issue/m-p/4843954#M393521</guid>
      <dc:creator>Doug_3</dc:creator>
      <dc:date>2001-02-08T00:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Simple tar issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-tar-issue/m-p/4843955#M393522</link>
      <description>You have copied the files using absolute path it seems so you should be ok with your present tar command. &lt;BR /&gt;Try tar -tvf /dev/rmt/0m  | grep filename . where filename is the file you want .Suppose the output is $filename with all the path appended. After that give &lt;BR /&gt;tar -xvf $filename ( $filename is exactly as it shows from above output).&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;Good luck</description>
      <pubDate>Thu, 08 Feb 2001 00:27:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simple-tar-issue/m-p/4843955#M393522</guid>
      <dc:creator>Jitendra_1</dc:creator>
      <dc:date>2001-02-08T00:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: Simple tar issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-tar-issue/m-p/4843956#M393523</link>
      <description>You might also want to take a look at the pax command as this allows recovering from a tar or cpio archive and even stripping off leading directories.&lt;BR /&gt;&lt;BR /&gt;man pax&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Feb 2001 08:31:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simple-tar-issue/m-p/4843956#M393523</guid>
      <dc:creator>melvyn burnard</dc:creator>
      <dc:date>2001-02-08T08:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Simple tar issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-tar-issue/m-p/4843957#M393524</link>
      <description>Try a tape cleaner.</description>
      <pubDate>Thu, 08 Feb 2001 08:44:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simple-tar-issue/m-p/4843957#M393524</guid>
      <dc:creator>Mike Williams_3</dc:creator>
      <dc:date>2001-02-08T08:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Simple tar issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-tar-issue/m-p/4843958#M393525</link>
      <description>Hi Doug,&lt;BR /&gt;&lt;BR /&gt;Your problem definitely comes from the absolute/relative path you are using.&lt;BR /&gt;&lt;BR /&gt;In your example above, you use relative path to create the tape and absolute path when trying to retrieve the data.&lt;BR /&gt;&lt;BR /&gt;A simple 'tar tv' will show you how files are stored on the tape, and you should use the name as it is shown to extract your file(s).&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Dan&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Feb 2001 10:00:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simple-tar-issue/m-p/4843958#M393525</guid>
      <dc:creator>Dan Hetzel</dc:creator>
      <dc:date>2001-02-08T10:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Simple tar issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-tar-issue/m-p/4843959#M393526</link>
      <description>Thanks to all who replied.  It was a issue of relative vs. absolute path.  Different operators were using different paths.&lt;BR /&gt;&lt;BR /&gt;Unforetunately for me the tape did not restore the file that tar -vf was on the tape.  No error msg, just no file.&lt;BR /&gt;&lt;BR /&gt;Oh well, back to fbackup which as worked flawlessly for me.&lt;BR /&gt;&lt;BR /&gt;Doug</description>
      <pubDate>Mon, 12 Feb 2001 17:03:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simple-tar-issue/m-p/4843959#M393526</guid>
      <dc:creator>Doug_3</dc:creator>
      <dc:date>2001-02-12T17:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Simple tar issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-tar-issue/m-p/4843960#M393527</link>
      <description>thank you.</description>
      <pubDate>Thu, 30 Apr 2009 20:42:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simple-tar-issue/m-p/4843960#M393527</guid>
      <dc:creator>Doug_3</dc:creator>
      <dc:date>2009-04-30T20:42:52Z</dc:date>
    </item>
  </channel>
</rss>

