<?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 Error message when using tar for online backup in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/error-message-when-using-tar-for-online-backup/m-p/3082891#M143045</link>
    <description>I have a script to run online backup for our oracle8i databse on hp-ux 11i. The script looks like:&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;if (tar -cvhf /dev/rmt/0m `cat datafiles.lst`)&lt;BR /&gt;then&lt;BR /&gt;  echo "Database successfully backed up!!!" &amp;gt;&amp;gt; online_backup.log&lt;BR /&gt;else&lt;BR /&gt;  echo "Database backup failed." &amp;gt;&amp;gt; online_backup.log&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;tar -tvf /dev/rmt/0m &amp;gt;&amp;gt; online_backup.log&lt;BR /&gt;&lt;BR /&gt;When I check the log file, I see all datafiles on the list. It seems to me all files are backuped fine, but I also see the "Database backup failed" in the log file. Why?&lt;BR /&gt;&lt;BR /&gt;I appreciate any responses.&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
    <pubDate>Wed, 01 Oct 2003 11:13:48 GMT</pubDate>
    <dc:creator>Simon Qu</dc:creator>
    <dc:date>2003-10-01T11:13:48Z</dc:date>
    <item>
      <title>Error message when using tar for online backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-message-when-using-tar-for-online-backup/m-p/3082891#M143045</link>
      <description>I have a script to run online backup for our oracle8i databse on hp-ux 11i. The script looks like:&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;if (tar -cvhf /dev/rmt/0m `cat datafiles.lst`)&lt;BR /&gt;then&lt;BR /&gt;  echo "Database successfully backed up!!!" &amp;gt;&amp;gt; online_backup.log&lt;BR /&gt;else&lt;BR /&gt;  echo "Database backup failed." &amp;gt;&amp;gt; online_backup.log&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;tar -tvf /dev/rmt/0m &amp;gt;&amp;gt; online_backup.log&lt;BR /&gt;&lt;BR /&gt;When I check the log file, I see all datafiles on the list. It seems to me all files are backuped fine, but I also see the "Database backup failed" in the log file. Why?&lt;BR /&gt;&lt;BR /&gt;I appreciate any responses.&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Wed, 01 Oct 2003 11:13:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-message-when-using-tar-for-online-backup/m-p/3082891#M143045</guid>
      <dc:creator>Simon Qu</dc:creator>
      <dc:date>2003-10-01T11:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error message when using tar for online backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-message-when-using-tar-for-online-backup/m-p/3082892#M143046</link>
      <description>&lt;BR /&gt;There isn't anything I can see wrong with this but in this script, the file is always appended to, are you quite sure you're not just seeing previous failed runs?&lt;BR /&gt;&lt;BR /&gt;Why do you have brackets around your first tar command?&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Wed, 01 Oct 2003 11:26:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-message-when-using-tar-for-online-backup/m-p/3082892#M143046</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-10-01T11:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Error message when using tar for online backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-message-when-using-tar-for-online-backup/m-p/3082893#M143047</link>
      <description>My guess would be that your backup is erroring out somewhere.  Do you see any errors anywhere?  Are you sure it is not needing a 2nd tape?  &lt;BR /&gt;  &lt;BR /&gt;I would consider trying something like:&lt;BR /&gt; &lt;BR /&gt;tar -cvhf /dev/rmt/0m $(cat datafiles.lst) &amp;gt; backup.log 2&amp;gt;&amp;amp;1&lt;BR /&gt;if [ $? = 0 ]&lt;BR /&gt;then&lt;BR /&gt;echo "Database successfully backup up!"&lt;BR /&gt;else&lt;BR /&gt;echo "It wasn't"&lt;BR /&gt;fi&lt;BR /&gt; &lt;BR /&gt;The tar statement will still do your backup, but it will send all of its output, both standard out and standard error, to the backup.log file so you can see if you are getting any errors.</description>
      <pubDate>Wed, 01 Oct 2003 11:35:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-message-when-using-tar-for-online-backup/m-p/3082893#M143047</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2003-10-01T11:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error message when using tar for online backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-message-when-using-tar-for-online-backup/m-p/3082894#M143048</link>
      <description>&lt;BR /&gt;  Would that be a better idea to check only the return value of tar ?&lt;BR /&gt;&lt;BR /&gt;tar -cvhf /dev/rmt/0m `cat datafiles.lst` 1&amp;gt;/tmp/out 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;if [[ $? -ne 0 ]]&lt;BR /&gt;then&lt;BR /&gt;  echo "Database backup failed." &amp;gt;&amp;gt; online_backup.log&lt;BR /&gt;else&lt;BR /&gt;  echo "Database successfully backed up!!!" &amp;gt;&amp;gt; online_backup.log&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Wed, 01 Oct 2003 11:36:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-message-when-using-tar-for-online-backup/m-p/3082894#M143048</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2003-10-01T11:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: Error message when using tar for online backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-message-when-using-tar-for-online-backup/m-p/3082895#M143049</link>
      <description>Man page for tar does not mention returned values, so I don't think you can rely on them in 'if' statement.</description>
      <pubDate>Wed, 01 Oct 2003 11:49:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-message-when-using-tar-for-online-backup/m-p/3082895#M143049</guid>
      <dc:creator>Vitek Pepas</dc:creator>
      <dc:date>2003-10-01T11:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error message when using tar for online backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-message-when-using-tar-for-online-backup/m-p/3082896#M143050</link>
      <description>Actually, I'm sure you can't rely on the value returned by tar. I had the same problem some time ago. I was running HP-UX 10.20 then, but it may be the same in 11.x.&lt;BR /&gt;I solved the problem by switching to fbackup.</description>
      <pubDate>Wed, 01 Oct 2003 12:04:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-message-when-using-tar-for-online-backup/m-p/3082896#M143050</guid>
      <dc:creator>Vitek Pepas</dc:creator>
      <dc:date>2003-10-01T12:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error message when using tar for online backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-message-when-using-tar-for-online-backup/m-p/3082897#M143051</link>
      <description>Thank you all.&lt;BR /&gt;I used the same script on hp-ux10.20 and it worked fine. Now we just moved to hp-ux11i. Does the "tar" have something specail on 11i ?</description>
      <pubDate>Wed, 01 Oct 2003 12:07:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-message-when-using-tar-for-online-backup/m-p/3082897#M143051</guid>
      <dc:creator>Simon Qu</dc:creator>
      <dc:date>2003-10-01T12:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Error message when using tar for online backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-message-when-using-tar-for-online-backup/m-p/3082898#M143052</link>
      <description>Try just running command tar -cvhf /dev/rmt/0m $(cat datafiles.lst) &amp;gt; backup.log 2&amp;gt;&amp;amp;1&lt;BR /&gt;And see if it works. Tar does return code 0 for successful command on 11i as well.&lt;BR /&gt;&lt;BR /&gt;-GK-</description>
      <pubDate>Wed, 01 Oct 2003 13:27:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-message-when-using-tar-for-online-backup/m-p/3082898#M143052</guid>
      <dc:creator>GK_5</dc:creator>
      <dc:date>2003-10-01T13:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error message when using tar for online backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-message-when-using-tar-for-online-backup/m-p/3082899#M143053</link>
      <description>I got an error like this:&lt;BR /&gt;tar: Size of /db01/oracle/vis_sales_01.dbf &amp;gt; 2GB.  Not dumped.&lt;BR /&gt;&lt;BR /&gt;This datafile is greater than 2GB. Is there a way to backup this much big file?&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Wed, 01 Oct 2003 16:31:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-message-when-using-tar-for-online-backup/m-p/3082899#M143053</guid>
      <dc:creator>Simon Qu</dc:creator>
      <dc:date>2003-10-01T16:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Error message when using tar for online backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-message-when-using-tar-for-online-backup/m-p/3082900#M143054</link>
      <description>If your data file is larger than 2 GB, the HPUX's standard tar command will barf and die.  You can use the gnu version of tar and go up to  4GB (it may be 8GB now).  You can't use the default version of gzip either, for the same reason.  You can get a better version of either  command from &lt;A href="http://www.gnu.org." target="_blank"&gt;www.gnu.org.&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Wed, 01 Oct 2003 16:40:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-message-when-using-tar-for-online-backup/m-p/3082900#M143054</guid>
      <dc:creator>Chris Vail</dc:creator>
      <dc:date>2003-10-01T16:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Error message when using tar for online backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-message-when-using-tar-for-online-backup/m-p/3082901#M143055</link>
      <description>Ahhh...Now we get to the real problem.  &lt;BR /&gt; &lt;BR /&gt;The native HP-UX tar can *NOT* handle large files (ie. larger than 2GB).  There is a patch available for HP-UX 11i that will allow it to archive files up to 8GB.  &lt;BR /&gt; &lt;BR /&gt;NOTE -- If you install this patch then your tar archive will *ONLY* work on other HP-UX machines with this patch applied.&lt;BR /&gt; &lt;BR /&gt;The patch you need to get this to work is PHCO_28992.&lt;BR /&gt;&lt;A href="http://www1.itrc.hp.com/service/patch/patchDetail.do?patchid=PHCO_28992&amp;amp;context=hpux:800:11:11" target="_blank"&gt;http://www1.itrc.hp.com/service/patch/patchDetail.do?patchid=PHCO_28992&amp;amp;context=hpux:800:11:11&lt;/A&gt;</description>
      <pubDate>Wed, 01 Oct 2003 16:47:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-message-when-using-tar-for-online-backup/m-p/3082901#M143055</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2003-10-01T16:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Error message when using tar for online backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-message-when-using-tar-for-online-backup/m-p/3082902#M143056</link>
      <description>Thank all you guys.&lt;BR /&gt;I installed the patch Partick recommended. It worked fine.</description>
      <pubDate>Thu, 02 Oct 2003 14:47:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-message-when-using-tar-for-online-backup/m-p/3082902#M143056</guid>
      <dc:creator>Simon Qu</dc:creator>
      <dc:date>2003-10-02T14:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error message when using tar for online backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-message-when-using-tar-for-online-backup/m-p/3082903#M143057</link>
      <description>Simon,&lt;BR /&gt;&lt;BR /&gt;Someday you will encounter files greater than 8GB.. I suggest you start using GNU tar which addresses some of the limitations of most Unix's bundled tar...  Did you know that even Veritas uses it (GnuTar) in its NetBackup product?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Oct 2003 15:17:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-message-when-using-tar-for-online-backup/m-p/3082903#M143057</guid>
      <dc:creator>Alzhy</dc:creator>
      <dc:date>2003-10-02T15:17:00Z</dc:date>
    </item>
  </channel>
</rss>

