<?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 Extract file in different directory using tar in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/extract-file-in-different-directory-using-tar/m-p/4556671#M371229</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;not able to extract file in different directory &lt;BR /&gt;&lt;BR /&gt;e.g. &lt;BR /&gt;#cd /backup&lt;BR /&gt;#tar -cvf test.tar .&lt;BR /&gt;and then&lt;BR /&gt;#cd /test&lt;BR /&gt;#tar -xvf /backup/test.tar *&lt;BR /&gt;&lt;BR /&gt;still its restoring files to /backup &lt;BR /&gt;</description>
    <pubDate>Wed, 30 Dec 2009 13:00:21 GMT</pubDate>
    <dc:creator>Ashfak Mohmad Iqbal Sut</dc:creator>
    <dc:date>2009-12-30T13:00:21Z</dc:date>
    <item>
      <title>Extract file in different directory using tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extract-file-in-different-directory-using-tar/m-p/4556671#M371229</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;not able to extract file in different directory &lt;BR /&gt;&lt;BR /&gt;e.g. &lt;BR /&gt;#cd /backup&lt;BR /&gt;#tar -cvf test.tar .&lt;BR /&gt;and then&lt;BR /&gt;#cd /test&lt;BR /&gt;#tar -xvf /backup/test.tar *&lt;BR /&gt;&lt;BR /&gt;still its restoring files to /backup &lt;BR /&gt;</description>
      <pubDate>Wed, 30 Dec 2009 13:00:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extract-file-in-different-directory-using-tar/m-p/4556671#M371229</guid>
      <dc:creator>Ashfak Mohmad Iqbal Sut</dc:creator>
      <dc:date>2009-12-30T13:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: Extract file in different directory using tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extract-file-in-different-directory-using-tar/m-p/4556672#M371230</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;After taking backup, what is tar -tvf saying??&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Sooraj</description>
      <pubDate>Wed, 30 Dec 2009 13:17:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extract-file-in-different-directory-using-tar/m-p/4556672#M371230</guid>
      <dc:creator>SoorajCleris</dc:creator>
      <dc:date>2009-12-30T13:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Extract file in different directory using tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extract-file-in-different-directory-using-tar/m-p/4556673#M371231</link>
      <description># tar -tvf tapbak&lt;BR /&gt;rw-r--r--   0/3      7 Dec 30 15:36 2009 /backup/tap/ta&lt;BR /&gt;#&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Dec 2009 13:20:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extract-file-in-different-directory-using-tar/m-p/4556673#M371231</guid>
      <dc:creator>Ashfak Mohmad Iqbal Sut</dc:creator>
      <dc:date>2009-12-30T13:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Extract file in different directory using tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extract-file-in-different-directory-using-tar/m-p/4556674#M371232</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1326158" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1326158&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;rgs,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Dec 2009 13:21:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extract-file-in-different-directory-using-tar/m-p/4556674#M371232</guid>
      <dc:creator>rariasn</dc:creator>
      <dc:date>2009-12-30T13:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Extract file in different directory using tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extract-file-in-different-directory-using-tar/m-p/4556675#M371233</link>
      <description># pwd&lt;BR /&gt;/backup/test&lt;BR /&gt;# ls&lt;BR /&gt;doc1&lt;BR /&gt;# tar -cvf /backup/test/bak.tar .&lt;BR /&gt;a ./doc1 1 blocks&lt;BR /&gt;a ./bak.tar 0 blocks&lt;BR /&gt;# ls&lt;BR /&gt;bak.tar  doc1&lt;BR /&gt;# cd /db_dev&lt;BR /&gt;# ls&lt;BR /&gt;lost+found     pairsfile.txt  rac_db_oh&lt;BR /&gt;# tar -xvf /backup/test/bak.tar *&lt;BR /&gt;# ls&lt;BR /&gt;lost+found     pairsfile.txt  rac_db_oh&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;please see the output</description>
      <pubDate>Wed, 30 Dec 2009 13:37:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extract-file-in-different-directory-using-tar/m-p/4556675#M371233</guid>
      <dc:creator>Ashfak Mohmad Iqbal Sut</dc:creator>
      <dc:date>2009-12-30T13:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Extract file in different directory using tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extract-file-in-different-directory-using-tar/m-p/4556676#M371234</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;Sample tar backup:&lt;BR /&gt;&lt;BR /&gt;# cd /backup&lt;BR /&gt;# tar cfv test.tar ./*&lt;BR /&gt;# cd /test&lt;BR /&gt;# tar xvf /backup/test.tar .&lt;BR /&gt;&lt;BR /&gt;rgs,</description>
      <pubDate>Wed, 30 Dec 2009 13:43:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extract-file-in-different-directory-using-tar/m-p/4556676#M371234</guid>
      <dc:creator>rariasn</dc:creator>
      <dc:date>2009-12-30T13:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Extract file in different directory using tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extract-file-in-different-directory-using-tar/m-p/4556677#M371235</link>
      <description>You must not use the * at the end of the tar-extract command. The * tells tar to extract only files that match the ones in the current directory and there is no match with what you have in the tar file.</description>
      <pubDate>Wed, 30 Dec 2009 13:45:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extract-file-in-different-directory-using-tar/m-p/4556677#M371235</guid>
      <dc:creator>TTr</dc:creator>
      <dc:date>2009-12-30T13:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: Extract file in different directory using tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extract-file-in-different-directory-using-tar/m-p/4556678#M371236</link>
      <description>wants to tar folder /db_test (space is not available on that filesystem &lt;BR /&gt;&lt;BR /&gt;what is the method to create compressed file on different folder&lt;BR /&gt;&lt;BR /&gt;eg :&lt;BR /&gt;&lt;BR /&gt;Source folder : /db_test &lt;BR /&gt;targer folder : /db_dev&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Dec 2009 14:04:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extract-file-in-different-directory-using-tar/m-p/4556678#M371236</guid>
      <dc:creator>Ashfak Mohmad Iqbal Sut</dc:creator>
      <dc:date>2009-12-30T14:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Extract file in different directory using tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extract-file-in-different-directory-using-tar/m-p/4556679#M371237</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;If you have a 'tar' archive that was made with absolute paths, use 'pax' to extract it to a different directory:&lt;BR /&gt;&lt;BR /&gt;# pax -r -s '|/db_test/|/db_dev/|' -f /backup/test.tar&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Dec 2009 14:20:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extract-file-in-different-directory-using-tar/m-p/4556679#M371237</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-12-30T14:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Extract file in different directory using tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extract-file-in-different-directory-using-tar/m-p/4556680#M371238</link>
      <description>&lt;!--!*#--&gt;&amp;gt;  You must not use the * [...]&lt;BR /&gt;&lt;BR /&gt;That's the most important thing here.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; what is the method to create compressed&lt;BR /&gt;&amp;gt; file on different folder&lt;BR /&gt;&lt;BR /&gt;Specify a different destination path in the&lt;BR /&gt;"tar" command?  You did it for extraction&lt;BR /&gt;(with the defective "*"):&lt;BR /&gt;&lt;BR /&gt;&amp;gt; #tar -xvf /backup/test.tar *&lt;BR /&gt;&lt;BR /&gt;So you should be able to do it for creation:&lt;BR /&gt;&lt;BR /&gt;      cd /db_test &lt;BR /&gt;      tar cf /db_dev/db_test.tar .&lt;BR /&gt;&lt;BR /&gt;or:&lt;BR /&gt;&lt;BR /&gt;      cd /&lt;BR /&gt;      tar cf /db_dev/db_test.tar db_test&lt;BR /&gt;&lt;BR /&gt;depending on what you want in the archive.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] use 'pax' [...]&lt;BR /&gt;&lt;BR /&gt;Or GNU "tar".  A Forum search for keywords&lt;BR /&gt;like, say,&lt;BR /&gt;      gnu tar pax&lt;BR /&gt;should find many old threads on this topic.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Note that:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; #tar -cvf test.tar .&lt;BR /&gt;&lt;BR /&gt;would create an archive containing relative&lt;BR /&gt;paths, while:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; # tar -tvf tapbak&lt;BR /&gt;&amp;gt; rw-r--r-- 0/3 7 Dec 30 15:36 2009 /backup/tap/ta&lt;BR /&gt;&lt;BR /&gt;shows an archive containing an absolute path.&lt;BR /&gt;It looks as if you're doing too many&lt;BR /&gt;different things at one time, and getting&lt;BR /&gt;more confused than necessary.</description>
      <pubDate>Wed, 30 Dec 2009 15:06:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extract-file-in-different-directory-using-tar/m-p/4556680#M371238</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-12-30T15:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Extract file in different directory using tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extract-file-in-different-directory-using-tar/m-p/4556681#M371239</link>
      <description>&amp;gt;what is the method to create compressed file on different directory?&lt;BR /&gt;&lt;BR /&gt;Did you want to gzip or compress the tarfile?&lt;BR /&gt;Or just copy the files to another directory tree as JRF gave you?</description>
      <pubDate>Wed, 30 Dec 2009 15:42:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extract-file-in-different-directory-using-tar/m-p/4556681#M371239</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-12-30T15:42:52Z</dc:date>
    </item>
  </channel>
</rss>

