<?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: Problems with tar in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-tar/m-p/2945496#M930882</link>
    <description>What do you see when you read the table of contents on the tape?&lt;BR /&gt;&lt;BR /&gt;tar -tvf /dev/rmt/0m&lt;BR /&gt;&lt;BR /&gt;Regarding the above suggestion to use relative backups instead of absolute:&lt;BR /&gt;&lt;BR /&gt;absolute = /dir/file&lt;BR /&gt;relative - ./dir/file&lt;BR /&gt;&lt;BR /&gt;Just remember that when you restore absolute you'll also overwrite.&lt;BR /&gt;&lt;BR /&gt;Try working with PAX. PAX is the ignite backup utility and works with TAR and CPIO as well.  Also, it has the nice feature of a relative restore with an absolute backup:&lt;BR /&gt;&lt;BR /&gt;pax -r -s,/home/users,/home/users2, -f /tmp/users.tar &lt;BR /&gt;&lt;BR /&gt;Finally, beyond a permission problem on the directory somewhere, I don't see why this should be happening.  :-(</description>
    <pubDate>Tue, 08 Apr 2003 00:23:00 GMT</pubDate>
    <dc:creator>Michael Steele_2</dc:creator>
    <dc:date>2003-04-08T00:23:00Z</dc:date>
    <item>
      <title>Problems with tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-tar/m-p/2945492#M930878</link>
      <description>We have Tru64 and HPUX unix boxes here.  Occassionally, we need to move files from Tru64 to HPUX.  This is usually done via tar and ftp.  We recently ran in to this situation:&lt;BR /&gt;&lt;BR /&gt;The following from a Tru64 system is tarred up:&lt;BR /&gt;subdir/&lt;BR /&gt;subdir/subdir2/&lt;BR /&gt;subdir/subdir2/testfile2&lt;BR /&gt;subdir/testfile1&lt;BR /&gt;&lt;BR /&gt;The resulting tar file works on all other Tru64 boxes when untarring it.  IE: it creates the directories and files as expected.  On any other HPUX system, we get: &lt;BR /&gt;tar: ./subdir - cannot create&lt;BR /&gt;./subdir not a directory&lt;BR /&gt;&lt;BR /&gt;Everything under that subdir fails with the same or similar error.  Has anyone run into this when moving a tar from from Tru64 to HPUX?  If so, what causes it?  More importantly, what fixes it?&lt;BR /&gt;&lt;BR /&gt;scott&lt;BR /&gt;&lt;BR /&gt;ps  this happens on our 10.20 and 11i systems.</description>
      <pubDate>Mon, 07 Apr 2003 20:55:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-tar/m-p/2945492#M930878</guid>
      <dc:creator>Scott Brewster</dc:creator>
      <dc:date>2003-04-07T20:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-tar/m-p/2945493#M930879</link>
      <description>Off hand, how is the tar archive created and attempted to be extracted? Are you using 'root'?</description>
      <pubDate>Mon, 07 Apr 2003 20:58:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-tar/m-p/2945493#M930879</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2003-04-07T20:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-tar/m-p/2945494#M930880</link>
      <description>The tar is being done (both as root and as Joe User) like this:&lt;BR /&gt;&lt;BR /&gt;tar -cf /tmp/sdb.tar ./  (to get entire current directory and below).&lt;BR /&gt;&lt;BR /&gt;Have also tried:&lt;BR /&gt;&lt;BR /&gt;tar -cf /tmp/sdb.tar ./perl (to get perl subdir and all below it (only)).&lt;BR /&gt;&lt;BR /&gt;the tar completes successfully with either command.  The restore command looks like this:&lt;BR /&gt;&lt;BR /&gt;tar -xf sdb.tar&lt;BR /&gt;&lt;BR /&gt;During this restore is when the previously mentioned errors pop up (whether as root or plain user).&lt;BR /&gt;&lt;BR /&gt;A tar -tf sdb.tar shows that the tar file contains the subdirs and files as expected.</description>
      <pubDate>Mon, 07 Apr 2003 21:25:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-tar/m-p/2945494#M930880</guid>
      <dc:creator>Scott Brewster</dc:creator>
      <dc:date>2003-04-07T21:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-tar/m-p/2945495#M930881</link>
      <description>Hi Scott,&lt;BR /&gt;  Can you check the permission of the parent dir. Do you have access to create files / sub-dirs under the dir, in which you are tring you extract the tar image.&lt;BR /&gt;&lt;BR /&gt;Also check with the following.&lt;BR /&gt;&lt;BR /&gt;Use tar -cf /tmp/name.tar * (* instead of ./).&lt;BR /&gt;&lt;BR /&gt;Srini.&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Apr 2003 23:54:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-tar/m-p/2945495#M930881</guid>
      <dc:creator>avsrini</dc:creator>
      <dc:date>2003-04-07T23:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-tar/m-p/2945496#M930882</link>
      <description>What do you see when you read the table of contents on the tape?&lt;BR /&gt;&lt;BR /&gt;tar -tvf /dev/rmt/0m&lt;BR /&gt;&lt;BR /&gt;Regarding the above suggestion to use relative backups instead of absolute:&lt;BR /&gt;&lt;BR /&gt;absolute = /dir/file&lt;BR /&gt;relative - ./dir/file&lt;BR /&gt;&lt;BR /&gt;Just remember that when you restore absolute you'll also overwrite.&lt;BR /&gt;&lt;BR /&gt;Try working with PAX. PAX is the ignite backup utility and works with TAR and CPIO as well.  Also, it has the nice feature of a relative restore with an absolute backup:&lt;BR /&gt;&lt;BR /&gt;pax -r -s,/home/users,/home/users2, -f /tmp/users.tar &lt;BR /&gt;&lt;BR /&gt;Finally, beyond a permission problem on the directory somewhere, I don't see why this should be happening.  :-(</description>
      <pubDate>Tue, 08 Apr 2003 00:23:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-tar/m-p/2945496#M930882</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2003-04-08T00:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-tar/m-p/2945497#M930883</link>
      <description>I tried to reproduce this problem and could not on two systems, one being an AIX box (don't have a TRU64).</description>
      <pubDate>Tue, 08 Apr 2003 00:45:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-tar/m-p/2945497#M930883</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2003-04-08T00:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-tar/m-p/2945498#M930884</link>
      <description>I tried to reproduce this problem and could not on two systems, one being an AIX box (don't have a TRU64). As suggested, perhaps try a different method, like 'cpio' or dd</description>
      <pubDate>Tue, 08 Apr 2003 00:46:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-tar/m-p/2945498#M930884</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2003-04-08T00:46:28Z</dc:date>
    </item>
  </channel>
</rss>

