<?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 Command.... in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-command/m-p/2558093#M917883</link>
    <description>Thanks... &lt;BR /&gt;&lt;BR /&gt;you make me think to something.. I've made symbolic link to another filesystem... :)&lt;BR /&gt;&lt;BR /&gt;so it solved my probleme!!! :)</description>
    <pubDate>Fri, 27 Jul 2001 17:18:12 GMT</pubDate>
    <dc:creator>Jonathan Caplette</dc:creator>
    <dc:date>2001-07-27T17:18:12Z</dc:date>
    <item>
      <title>Tar Command....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-command/m-p/2558090#M917880</link>
      <description>Hi guys,&lt;BR /&gt;&lt;BR /&gt;I have a tape with an unknow tar file, so I want to extract it on the machine, but when I extract the tar file, the files in it try to be restored on the / filesystem, something that I don't want... What I want is to extract what's in the tar file into the /tmp directory for example... What I want to know is what is the tar command that will permit me to extract the file on my tape under another filesystem???&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Jonathan</description>
      <pubDate>Fri, 27 Jul 2001 16:37:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-command/m-p/2558090#M917880</guid>
      <dc:creator>Jonathan Caplette</dc:creator>
      <dc:date>2001-07-27T16:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Tar Command....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-command/m-p/2558091#M917881</link>
      <description>Hi Jonathan&lt;BR /&gt;&lt;BR /&gt;Tar would restore the way it was abcked up supose you have give&lt;BR /&gt;&lt;BR /&gt;tar cvf /etc/* then files will be stored in that path like&lt;BR /&gt;&lt;BR /&gt;/etc/xxx&lt;BR /&gt;/etc/YYYY&lt;BR /&gt;&lt;BR /&gt;so whenever you have to restore it back , it restores using the same path .Where as if you have backed it up by going into /etc and then using&lt;BR /&gt;&lt;BR /&gt;tar cv * then it will just store the file name. &lt;BR /&gt;&lt;BR /&gt;The way around to restore with PATH is to clear the directory in question , move it to some other place ,and then restore the tape.&lt;BR /&gt;Slightly cumbersome but it should work.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava</description>
      <pubDate>Fri, 27 Jul 2001 16:50:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-command/m-p/2558091#M917881</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2001-07-27T16:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: Tar Command....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-command/m-p/2558092#M917882</link>
      <description>Hi Jonathan,&lt;BR /&gt;&lt;BR /&gt;you may apply the following command :&lt;BR /&gt;&lt;BR /&gt;tar -tf /dev/rmt/#m&lt;BR /&gt;&lt;BR /&gt;this command lists only the names of files from the tape without any extraction of the files it selfs.&lt;BR /&gt;&lt;BR /&gt;if The first character from these files id &lt;BR /&gt;/&lt;BR /&gt;then the backup on that tape is done with the absolute path ( which start referincing from the root directory "/") and there is no manner to restaure it to another place. The only place is it's real place.&lt;BR /&gt;&lt;BR /&gt;Workaround :&lt;BR /&gt;As siad before, remove the directory that it will be overwrite with the content of the restaure to some where else ( saved directory) and &lt;BR /&gt;resture your backup and then manually remove the saved directory to it's original place.&lt;BR /&gt;&lt;BR /&gt;Magdi</description>
      <pubDate>Fri, 27 Jul 2001 17:17:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-command/m-p/2558092#M917882</guid>
      <dc:creator>Magdi KAMAL</dc:creator>
      <dc:date>2001-07-27T17:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Tar Command....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-command/m-p/2558093#M917883</link>
      <description>Thanks... &lt;BR /&gt;&lt;BR /&gt;you make me think to something.. I've made symbolic link to another filesystem... :)&lt;BR /&gt;&lt;BR /&gt;so it solved my probleme!!! :)</description>
      <pubDate>Fri, 27 Jul 2001 17:18:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-command/m-p/2558093#M917883</guid>
      <dc:creator>Jonathan Caplette</dc:creator>
      <dc:date>2001-07-27T17:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Tar Command....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-command/m-p/2558094#M917884</link>
      <description>There's actually a couple of ways to restore a tar tape to another directory when absolute paths are stored on the tape:&lt;BR /&gt;&lt;BR /&gt;1. Use pax and the -s option. The man page shows an example of how to restore /usr files on tape to the current working directory.&lt;BR /&gt;&lt;BR /&gt;2. Use chroot (change root directory) to change the / directory to someplace local and now all files will be recovered relative to the new (but temporary) root filesystem.</description>
      <pubDate>Fri, 27 Jul 2001 17:39:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-command/m-p/2558094#M917884</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2001-07-27T17:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: Tar Command....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-command/m-p/2558095#M917885</link>
      <description>You need to chroot yourself, which requires a few things.&lt;BR /&gt;1.  cd to a directory which would have enough space to extract the file.  Lets call it "/extract" for arguments sake.&lt;BR /&gt;2.  make a directory under this called "bin" and give it permissions so that you can access it's files.&lt;BR /&gt;I.E.&lt;BR /&gt;# mkdir /extract/bin&lt;BR /&gt;# chmod 755 /extract/bin&lt;BR /&gt;3.  Next copy "tar" to this directory.  This is important because the chrooted environment needs any binaries and libs you will need to access while chrooted.&lt;BR /&gt;# cp -p /sbin/tar /extract/bin&lt;BR /&gt;NOTE:  nothing in /sbin is dynamically linked, so it is safe!&lt;BR /&gt;4.  chroot and issue the tar command&lt;BR /&gt;I.E.&lt;BR /&gt;dd if=/dev/rmt/0m | chroot /extract /bin/tar xvf -&lt;BR /&gt;NOTE the full path given for tar!!!!!!&lt;BR /&gt;&lt;BR /&gt;This should fix your problems!&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Shannon</description>
      <pubDate>Fri, 27 Jul 2001 18:48:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-command/m-p/2558095#M917885</guid>
      <dc:creator>Shannon Petry</dc:creator>
      <dc:date>2001-07-27T18:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Tar Command....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-command/m-p/2558096#M917886</link>
      <description>Hi Jonethan,&lt;BR /&gt;&lt;BR /&gt;The basic sintaxe to extract file in tar format is :&lt;BR /&gt;tar -xvf /dev/rmt/0&lt;BR /&gt;When it will be restore depends :&lt;BR /&gt;1) your actual position ( directory ).&lt;BR /&gt;2) if the tape was write with relative path,&lt;BR /&gt;   for example, I am in /home and run &lt;BR /&gt;   "#tar -cvf /dev/rmt/0 . " , you can restore&lt;BR /&gt;   the files to any filesystem, but if the tape&lt;BR /&gt;   was the write without relative path, for   &lt;BR /&gt;   example, "#tar -cvf /dev/rmt/0 /home " then&lt;BR /&gt;   you can only restore the files to the &lt;BR /&gt;   original filesystem, in this case /home.&lt;BR /&gt;3) You can list the tape "tar -tvf /dev/rmt/0" &lt;BR /&gt;   and to verify how it writed.&lt;BR /&gt;&lt;BR /&gt;I think this help !&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Abel Berger&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Jul 2001 19:00:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-command/m-p/2558096#M917886</guid>
      <dc:creator>Abel Berger</dc:creator>
      <dc:date>2001-07-27T19:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Tar Command....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-command/m-p/2558097#M917887</link>
      <description>When, I was want say WHERE, OK !&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Abel Berger</description>
      <pubDate>Fri, 27 Jul 2001 19:58:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-command/m-p/2558097#M917887</guid>
      <dc:creator>Abel Berger</dc:creator>
      <dc:date>2001-07-27T19:58:16Z</dc:date>
    </item>
  </channel>
</rss>

