<?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 backup and restore in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup-and-restore/m-p/5182507#M460232</link>
    <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;An easy way to answer your question is for you to perform a test.  That said:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Please let me know the correct method of restoration in second case i.e&lt;BR /&gt;tar cvf /dev/rmt/0m $(cat ~myhome/test1).&lt;BR /&gt;&lt;BR /&gt;&amp;gt; tar xvf /dev/rmt/0m var/mqm/log&lt;BR /&gt;&lt;BR /&gt;This will not work, given that you created you archive with an absolute path.  You must specify that for 'tar' to find the directory (or file) in the archive.  Thus, do:&lt;BR /&gt;&lt;BR /&gt;# tar -xvf /dev/rmt/0m /var/mqm/log&lt;BR /&gt;&lt;BR /&gt;&amp;gt; If need to restore a single file :&lt;BR /&gt;&amp;gt; tar xvf /dev/rmt/0m var/mqm/log/logfile1&lt;BR /&gt;&lt;BR /&gt;The same applies; you need:&lt;BR /&gt;&lt;BR /&gt;# tar -xvf /dev/rmt/0m /var/mqm/log/logfile1&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 18 Jun 2009 15:30:47 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2009-06-18T15:30:47Z</dc:date>
    <item>
      <title>tar backup and restore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup-and-restore/m-p/5182499#M460224</link>
      <description>Dear Guru, &lt;BR /&gt;i googled for the any such previous thread&lt;BR /&gt;but was not able to find.here is a senario :&lt;BR /&gt;&lt;BR /&gt;/dev/vg01/lvol3    10485760   29012 9803266    0% /var/mqsi&lt;BR /&gt;/dev/vg01/lvol1    26214400   56299 24523276    0% /var/mqm&lt;BR /&gt;/dev/vg01/lvol2    20971520 3193062 16667359   16% /var/mqm/log&lt;BR /&gt;&lt;BR /&gt;i am doing -x inc_entire=vg00 in the ignite .&lt;BR /&gt;1)with the ignite tape , can i restore /var/mqm/log&lt;BR /&gt;since /var is in vg00 , ie mount mounts have been transversed &lt;BR /&gt;while taking the ignite backyp.&lt;BR /&gt;&lt;BR /&gt;2)OR , If i backup the like this :&lt;BR /&gt;#tar cvf /dev/rmt/0m $(cat ~myhome/test1)&lt;BR /&gt;where test1 is :&lt;BR /&gt;#more test1&lt;BR /&gt;/var/mqsi&lt;BR /&gt;/var/mqm&lt;BR /&gt;/var/mqm/log&lt;BR /&gt;/usr/local/utilities&lt;BR /&gt;/xyz&lt;BR /&gt;/xyz1&lt;BR /&gt;/Logs&lt;BR /&gt;(I.e backing up absolute path)&lt;BR /&gt;&lt;BR /&gt;will i able to do a complete restore of say /xyz,&lt;BR /&gt;#pwd&lt;BR /&gt;/&lt;BR /&gt;#tar xvf /dev/rmt/0mn /xyz&lt;BR /&gt;Is the understanding correct.&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Jun 2009 12:13:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup-and-restore/m-p/5182499#M460224</guid>
      <dc:creator>DeafFrog</dc:creator>
      <dc:date>2009-06-18T12:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: tar backup and restore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup-and-restore/m-p/5182500#M460225</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;You can restore your directory from your Ignite tape:&lt;BR /&gt;&lt;BR /&gt;# mt -f /dev/rmt/0mn fsf 1&lt;BR /&gt;# tar -xvf /dev/rmt/0m var/mqsi var/mqm&lt;BR /&gt;&lt;BR /&gt;Ignite used relative paths (a wise way to make any 'tar' archive!)&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Jun 2009 12:24:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup-and-restore/m-p/5182500#M460225</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-06-18T12:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: tar backup and restore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup-and-restore/m-p/5182501#M460226</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;the best solution is to extract it from ignite tape ( advice from JRF ), and if you are use the tar command you should extract if without /. The slash will be ignored.&lt;BR /&gt;&lt;BR /&gt;when i migrated some data i mounted it with NFS and use find + cpio, to move it to other location.&lt;BR /&gt;&lt;BR /&gt;mikap</description>
      <pubDate>Thu, 18 Jun 2009 12:55:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup-and-restore/m-p/5182501#M460226</guid>
      <dc:creator>Michal Kapalka (mikap)</dc:creator>
      <dc:date>2009-06-18T12:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: tar backup and restore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup-and-restore/m-p/5182502#M460227</link>
      <description>Hello James, &lt;BR /&gt;&lt;BR /&gt;           Thanks for prompt response.Is the second method of taking backup with absolute path correct considering i will need to restore every time exactly at same location.&lt;BR /&gt;&lt;BR /&gt;Regards ,&lt;BR /&gt;Rahul&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Jun 2009 13:11:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup-and-restore/m-p/5182502#M460227</guid>
      <dc:creator>DeafFrog</dc:creator>
      <dc:date>2009-06-18T13:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: tar backup and restore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup-and-restore/m-p/5182503#M460228</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;this means you'll do an ignite tape of your os (vg00) and a tar tape for additionl things (vg01).&lt;BR /&gt;&lt;BR /&gt;So you restore your server by&lt;BR /&gt;1. ignite for os&lt;BR /&gt;2. add tape for the additional things&lt;BR /&gt;&lt;BR /&gt;This will work&lt;BR /&gt;Volkmar&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Jun 2009 13:32:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup-and-restore/m-p/5182503#M460228</guid>
      <dc:creator>V. Nyga</dc:creator>
      <dc:date>2009-06-18T13:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: tar backup and restore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup-and-restore/m-p/5182504#M460229</link>
      <description>JRF said:&lt;BR /&gt;&lt;BR /&gt;# mt -f /dev/rmt/0mn fsf 1&lt;BR /&gt;# tar -xvf /dev/rmt/0m var/mqsi var/mqm&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Right, but the question was (and I have) is did Ignite catch the contents of those since they are in vg01, and only vg00 was included?  or what Ignite does when building the list in this case.&lt;BR /&gt;&lt;BR /&gt;I suppose a quick way to tell would be substitute  "-tvf" for "-xvf" in the above.</description>
      <pubDate>Thu, 18 Jun 2009 13:45:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup-and-restore/m-p/5182504#M460229</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2009-06-18T13:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: tar backup and restore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup-and-restore/m-p/5182505#M460230</link>
      <description>Thanks Mikap and Volkmar, &lt;BR /&gt;&lt;BR /&gt;      Please let me know the correct method of restoration in second case i.e &lt;BR /&gt;tar cvf /dev/rmt/0m $(cat ~myhome/test1).&lt;BR /&gt;#pwd &lt;BR /&gt;/&lt;BR /&gt;#tar xvf /dev/rmt/0m var/mqm/log (if need to restore /var/mqm/log)&lt;BR /&gt;If need to restore a single file :&lt;BR /&gt;#tar xvf /dev/rmt/0m var/mqm/log/logfile1....Is that correct ..thanks a lot for all your help.</description>
      <pubDate>Thu, 18 Jun 2009 13:46:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup-and-restore/m-p/5182505#M460230</guid>
      <dc:creator>DeafFrog</dc:creator>
      <dc:date>2009-06-18T13:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: tar backup and restore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup-and-restore/m-p/5182506#M460231</link>
      <description>Dear Gurus, &lt;BR /&gt;&lt;BR /&gt;I am done with day and will return after weekend.Thanks once again.&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Rahul</description>
      <pubDate>Thu, 18 Jun 2009 13:53:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup-and-restore/m-p/5182506#M460231</guid>
      <dc:creator>DeafFrog</dc:creator>
      <dc:date>2009-06-18T13:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: tar backup and restore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup-and-restore/m-p/5182507#M460232</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;An easy way to answer your question is for you to perform a test.  That said:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Please let me know the correct method of restoration in second case i.e&lt;BR /&gt;tar cvf /dev/rmt/0m $(cat ~myhome/test1).&lt;BR /&gt;&lt;BR /&gt;&amp;gt; tar xvf /dev/rmt/0m var/mqm/log&lt;BR /&gt;&lt;BR /&gt;This will not work, given that you created you archive with an absolute path.  You must specify that for 'tar' to find the directory (or file) in the archive.  Thus, do:&lt;BR /&gt;&lt;BR /&gt;# tar -xvf /dev/rmt/0m /var/mqm/log&lt;BR /&gt;&lt;BR /&gt;&amp;gt; If need to restore a single file :&lt;BR /&gt;&amp;gt; tar xvf /dev/rmt/0m var/mqm/log/logfile1&lt;BR /&gt;&lt;BR /&gt;The same applies; you need:&lt;BR /&gt;&lt;BR /&gt;# tar -xvf /dev/rmt/0m /var/mqm/log/logfile1&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Jun 2009 15:30:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup-and-restore/m-p/5182507#M460232</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-06-18T15:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: tar backup and restore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup-and-restore/m-p/5182508#M460233</link>
      <description>You may want to look into using pax(1) instead of tar.  pax can read/write tar, cpio or pax extended.</description>
      <pubDate>Fri, 19 Jun 2009 07:26:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup-and-restore/m-p/5182508#M460233</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-06-19T07:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: tar backup and restore</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup-and-restore/m-p/5182509#M460234</link>
      <description>If ignite is taken with -x inc_entire=vg00,the following can be restored, with ignite tape&lt;BR /&gt; &lt;BR /&gt;/dev/vg01/lvol1 26214400 56299 24523276 0% /var/mqm, for the second case , &lt;BR /&gt;&lt;BR /&gt;i.s backup with absolute path , James is correct( as always !!)</description>
      <pubDate>Thu, 02 Jul 2009 09:26:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-backup-and-restore/m-p/5182509#M460234</guid>
      <dc:creator>DeafFrog</dc:creator>
      <dc:date>2009-07-02T09:26:52Z</dc:date>
    </item>
  </channel>
</rss>

