<?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 question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-question/m-p/2701678#M901495</link>
    <description>You have to go to the directory and then you have to give the tar comand. That means you have to use 6 tar commands in the script and before each separate tar command you have to give the change dir command to that directory.&lt;BR /&gt;&lt;BR /&gt;Sandip</description>
    <pubDate>Thu, 11 Apr 2002 15:27:51 GMT</pubDate>
    <dc:creator>Sandip Ghosh</dc:creator>
    <dc:date>2002-04-11T15:27:51Z</dc:date>
    <item>
      <title>tar question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-question/m-p/2701676#M901493</link>
      <description>I'm writing a script to transfer a database from one system to another, both are HP-UX servers.  The server I'm moving them from stores the files in 6 directories - /r10, /r20, /r30, etc.  And the new server will store them in 5 directories - /data1, /data2, etc.  The files have to be rearranged in the process to evenly spread them out across the new mount points.  This is an example of what I'm doing (so far) in the script, moving a list of specific files to their new directory on the new server:&lt;BR /&gt;&lt;BR /&gt;tar cvf - /r10/file1.dbf /r60/file4.dbf /r20/file3.dbf /r40/file9.dbf | remsh host2 '(cd /data1; tar xvf -)'&lt;BR /&gt;&lt;BR /&gt;The problem is when the files are extracted (at the "tar xvf -" part), they're being restored to their original absolute path locations.  Since the new server doesn't have any of the /rXX directories, they're being created and filling up the / file system.  Here's my question:  Which tar option do I use, when extracting the files, to ignore the absolute path names and just restore to the current directory?</description>
      <pubDate>Thu, 11 Apr 2002 15:21:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-question/m-p/2701676#M901493</guid>
      <dc:creator>Andrew Griffin</dc:creator>
      <dc:date>2002-04-11T15:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: tar question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-question/m-p/2701677#M901494</link>
      <description>Hi Andrew,&lt;BR /&gt;&lt;BR /&gt;While doing backup ( tar -cvf ) , specify the relative path instead of absolute path.&lt;BR /&gt;&lt;BR /&gt;# cd /rxx&lt;BR /&gt;# tar -cvf /dev/rmt/0m .&lt;BR /&gt;&lt;BR /&gt;This will restore the files to the current directory while doing tar -xvf&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Shiju</description>
      <pubDate>Thu, 11 Apr 2002 15:24:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-question/m-p/2701677#M901494</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2002-04-11T15:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: tar question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-question/m-p/2701678#M901495</link>
      <description>You have to go to the directory and then you have to give the tar comand. That means you have to use 6 tar commands in the script and before each separate tar command you have to give the change dir command to that directory.&lt;BR /&gt;&lt;BR /&gt;Sandip</description>
      <pubDate>Thu, 11 Apr 2002 15:27:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-question/m-p/2701678#M901495</guid>
      <dc:creator>Sandip Ghosh</dc:creator>
      <dc:date>2002-04-11T15:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: tar question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-question/m-p/2701679#M901496</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Again, if you stick with absolute path, then read this thread:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/0,,0x835a50011d20d6118ff40090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/0,,0x835a50011d20d6118ff40090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;and Harry's suggestion here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x38d6cf38d6bdd5118ff10090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x38d6cf38d6bdd5118ff10090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Shiju&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Apr 2002 15:28:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-question/m-p/2701679#M901496</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2002-04-11T15:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: tar question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-question/m-p/2701680#M901497</link>
      <description>Thanks all, that's what I thought, just wanted to make sure.  I'm going to modify the script as such:&lt;BR /&gt;&lt;BR /&gt;cd / ;&lt;BR /&gt;tar cvf - r10/file2.dbf r60/file8.dbf r20/file3.dbf | remsh host2 '(cd /data1; tar xvf -)'&lt;BR /&gt;&lt;BR /&gt;etc., etc..&lt;BR /&gt;&lt;BR /&gt;Thanks for the help!</description>
      <pubDate>Thu, 11 Apr 2002 15:42:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-question/m-p/2701680#M901497</guid>
      <dc:creator>Andrew Griffin</dc:creator>
      <dc:date>2002-04-11T15:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: tar question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-question/m-p/2701681#M901498</link>
      <description>Hi Andrew,&lt;BR /&gt;&lt;BR /&gt;Just a reminder that tar cannot handle files &amp;gt; 2 Gb - even if the FS is set to support largefiles.&lt;BR /&gt;Something to keep in mind if those DB files grow down the road.&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Jeff&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Apr 2002 16:37:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-question/m-p/2701681#M901498</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2002-04-11T16:37:23Z</dc:date>
    </item>
  </channel>
</rss>

