<?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 Help..... in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-help/m-p/2616347#M37604</link>
    <description>Hi &lt;BR /&gt;&lt;BR /&gt;If you backup using ./home/classes ,./home/lib, ./home/config&lt;BR /&gt;you will be able to restore anywhere you want.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 20 Nov 2001 03:51:18 GMT</pubDate>
    <dc:creator>Manish Bharadwaj</dc:creator>
    <dc:date>2001-11-20T03:51:18Z</dc:date>
    <item>
      <title>TAR Help.....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-help/m-p/2616337#M37594</link>
      <description>Hai all,&lt;BR /&gt;&lt;BR /&gt;I have 3 directories /home/classes ,home/lib, /home/config..&lt;BR /&gt;&lt;BR /&gt;I need to take a backup of these three directories using "TAR".But while extracting i will declare an environment variable some thing like "TEST_HOME=/../.. . In this i will specify the path to extract the 3 directories...&lt;BR /&gt;&lt;BR /&gt;How can we take perticular those 3 directories and how can we extract those directories in different paths...??&lt;BR /&gt;&lt;BR /&gt;Any help please...&lt;BR /&gt;&lt;BR /&gt;Raj</description>
      <pubDate>Mon, 19 Nov 2001 07:29:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-help/m-p/2616337#M37594</guid>
      <dc:creator>Rajkumar_3</dc:creator>
      <dc:date>2001-11-19T07:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: TAR Help.....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-help/m-p/2616338#M37595</link>
      <description>You can't tell tar to use an arbitrarily defined environment variable.&lt;BR /&gt;Try this:&lt;BR /&gt;cd /home; tar cv classes lib config (... or just *)&lt;BR /&gt;Then , when you want to extract, you can do this:&lt;BR /&gt;cd $TEST_HOME; tar xv&lt;BR /&gt;This will extact all the directories tarred into $TEST_HOME.&lt;BR /&gt;If you want a separate path for each directory, use a temp directory like so:&lt;BR /&gt;mkdir -p /tmp/extracts; cd /tmp/extracts; tar xv ; mv &lt;DIR-NAME1&gt; &lt;DEST1&gt; ; mv &lt;DIR-NAME2&gt; &lt;DEST2&gt;; ...&lt;BR /&gt;&lt;BR /&gt;HTH&lt;/DEST2&gt;&lt;/DIR-NAME2&gt;&lt;/DEST1&gt;&lt;/DIR-NAME1&gt;</description>
      <pubDate>Mon, 19 Nov 2001 07:48:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-help/m-p/2616338#M37595</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2001-11-19T07:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: TAR Help.....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-help/m-p/2616339#M37596</link>
      <description>Uh-oh.. Apologies to anyone who wanted to post a "I know the answer, but I wont post it till you improve your points allocation record" &lt;BR /&gt;:-)</description>
      <pubDate>Mon, 19 Nov 2001 07:56:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-help/m-p/2616339#M37596</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2001-11-19T07:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: TAR Help.....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-help/m-p/2616340#M37597</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;Use tar's -T (or --files-from F)option to get names to extract or create from file F&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong&lt;BR /&gt;Brainbench MVP for Unix Admin&lt;BR /&gt;&lt;A href="http://www.brainbench.com" target="_blank"&gt;http://www.brainbench.com&lt;/A&gt;</description>
      <pubDate>Mon, 19 Nov 2001 08:00:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-help/m-p/2616340#M37597</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2001-11-19T08:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: TAR Help.....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-help/m-p/2616341#M37598</link>
      <description>Hai all,&lt;BR /&gt;&lt;BR /&gt;Appolozise for every one..Please correct me where i havent assign points...&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Raj&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Nov 2001 08:10:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-help/m-p/2616341#M37598</guid>
      <dc:creator>Rajkumar_3</dc:creator>
      <dc:date>2001-11-19T08:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: TAR Help.....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-help/m-p/2616342#M37599</link>
      <description>Hi Rajkumar,&lt;BR /&gt;&lt;BR /&gt;See Dan's post of Nov 13 in this thread&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x316efd3f91d3d5118ff40090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x316efd3f91d3d5118ff40090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Deepak.</description>
      <pubDate>Mon, 19 Nov 2001 08:21:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-help/m-p/2616342#M37599</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2001-11-19T08:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: TAR Help.....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-help/m-p/2616343#M37600</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I believe these are most likely&lt;BR /&gt;the threads you are looking for.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/&lt;/A&gt; 1,,0xfaebc6af36b7d5118ff10090279cd0f9,00.html &lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/&lt;/A&gt; 1,,0xdcc8cf38d6bdd5118ff10090279cd0f9,00.html &lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/&lt;/A&gt; 1,,0xd26cfd3f91d3d5118ff40090279cd0f9,00.html &lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/&lt;/A&gt; 1,,0x7bcecf38d6bdd5118ff10090279cd0f9,00.html &lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/&lt;/A&gt; 1,,0x8dfec6af36b7d5118ff10090279cd0f9,00.html &lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/&lt;/A&gt; 1,,0xf0b6cf38d6bdd5118ff10090279cd0f9,00.html &lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/&lt;/A&gt; 1,,0xf5b6cf38d6bdd5118ff10090279cd0f9,00.html &lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/&lt;/A&gt; 1,,0x93cfcf38d6bdd5118ff10090279cd0f9,00.html &lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/&lt;/A&gt; 1,,0x6a32630fe5c4d5118ff10090279cd0f9,00.html &lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/&lt;/A&gt; 1,,0x4e670b0717d1d5118ff40090279cd0f9,00.html &lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/&lt;/A&gt; 1,,0x1bcacf38d6bdd5118ff10090279cd0f9,00.html &lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/&lt;/A&gt; 1,,0x0db74e49c5cdd5118ff40090279cd0f9,00.html &lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/&lt;/A&gt; 1,,0xc1cd4e49c5cdd5118ff40090279cd0f9,00.html&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/&lt;/A&gt; 1,,0x66033d853cd9d5118ff40090279cd0f9,00.html&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/&lt;/A&gt; 1,,0x5ce1f715edc6d5118ff10090279cd0f9,00.html&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/&lt;/A&gt; 1,,0x06d1d08cc06fd511abcd0090277a778c,00.html&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/&lt;/A&gt; 1,,0x48750b0717d1d5118ff40090279cd0f9,00.html&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/&lt;/A&gt; 1,,0x06d1d08cc06fd511abcd0090277a778c,00.html&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/&lt;/A&gt; 1,,0x2c268ffa98a2d5118ff10090279cd0f9,00.html&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Nov 2001 08:38:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-help/m-p/2616343#M37600</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2001-11-19T08:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: TAR Help.....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-help/m-p/2616344#M37601</link>
      <description>Hai All&lt;BR /&gt;&lt;BR /&gt;Once again Appolozise....&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Raj</description>
      <pubDate>Mon, 19 Nov 2001 09:51:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-help/m-p/2616344#M37601</guid>
      <dc:creator>Rajkumar_3</dc:creator>
      <dc:date>2001-11-19T09:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: TAR Help.....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-help/m-p/2616345#M37602</link>
      <description>Hi Raj,&lt;BR /&gt;&lt;BR /&gt;If you create the tar using absolute pathnames for the files you backup, you will not be able to restore them to an alternate location.  You will need to use relative pathnames for your backup.&lt;BR /&gt;&lt;BR /&gt;HPUX 11.0's tar does not have either T or F option.&lt;BR /&gt;&lt;BR /&gt;Deepak has the answer for you:&lt;BR /&gt;cd /home&lt;BR /&gt;tar cvf tarfilename classes lib config&lt;BR /&gt;cd $TEST_HOME&lt;BR /&gt;tar xvf tarfilename&lt;BR /&gt;&lt;BR /&gt;Very important:  be sure cd $TEST_HOME is successful before un-tarring.  If not (for exampe the directory doesn't exist), you will be extracting into whatever directory you were in before trying to cd.  After the cd command, check that $? = 0.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Mon, 19 Nov 2001 14:56:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-help/m-p/2616345#M37602</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2001-11-19T14:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: TAR Help.....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-help/m-p/2616346#M37603</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I forgotten to mention that for the -T option, you will need to install GNU tar to have this option.&lt;BR /&gt;&lt;BR /&gt;As already pointed out, the default tar that comes with HP-UX does not have it.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong&lt;BR /&gt;Brainbench MVP for Unix Admin&lt;BR /&gt;&lt;A href="http://www.brainbench.com" target="_blank"&gt;http://www.brainbench.com&lt;/A&gt;</description>
      <pubDate>Mon, 19 Nov 2001 16:17:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-help/m-p/2616346#M37603</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2001-11-19T16:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: TAR Help.....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-help/m-p/2616347#M37604</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;If you backup using ./home/classes ,./home/lib, ./home/config&lt;BR /&gt;you will be able to restore anywhere you want.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Nov 2001 03:51:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-help/m-p/2616347#M37604</guid>
      <dc:creator>Manish Bharadwaj</dc:creator>
      <dc:date>2001-11-20T03:51:18Z</dc:date>
    </item>
  </channel>
</rss>

