<?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: fbackup return value in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-return-value/m-p/2545499#M866313</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You must use the -I and -v options to make&lt;BR /&gt;sure that logging is done. if the -I is&lt;BR /&gt;omitted no logging will occur.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;Michael</description>
    <pubDate>Wed, 27 Jun 2001 02:06:36 GMT</pubDate>
    <dc:creator>Michael Tully</dc:creator>
    <dc:date>2001-06-27T02:06:36Z</dc:date>
    <item>
      <title>fbackup return value</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-return-value/m-p/2545497#M866311</link>
      <description>I am writing a script to do backup and executes other commands.&lt;BR /&gt;&lt;BR /&gt;Is there a way where I can know whether a fbackup process is successful or not? Only if the backup is successful, then only I can proceed to the other commands. &lt;BR /&gt;&lt;BR /&gt;In the man page, I can see that there is this statement :&lt;BR /&gt;fbackup returns one of the following values:&lt;BR /&gt;  0 upon normal completion.&lt;BR /&gt;  1 if it is interrupted but allowed to save   &lt;BR /&gt;    its state for possible restart.&lt;BR /&gt;  2 if any error conditions prevent the &lt;BR /&gt;    session from completing.&lt;BR /&gt;  4 if any warning conditions are encountered.&lt;BR /&gt;&lt;BR /&gt;If warnings occur, the operator should check the fbackup logs to verify the sanity of the backup.&lt;BR /&gt;&lt;BR /&gt;But, I have looked for the log files and I don't see any of the values mention above.&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Wed, 27 Jun 2001 01:56:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-return-value/m-p/2545497#M866311</guid>
      <dc:creator>Koh Kuan Wong</dc:creator>
      <dc:date>2001-06-27T01:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: fbackup return value</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-return-value/m-p/2545498#M866312</link>
      <description>Hi, couple of things.  In your script put print $? after the backup.  That will give you the return value of the backup job.  You can then base whatever you want to do after the backup job on that exit code.  Secondly, if you run your backups through sam then the results of the backup are logged in /var/sam/log/br_log.  You will see the exit code appended to that file.  Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Rob&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Jun 2001 02:00:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-return-value/m-p/2545498#M866312</guid>
      <dc:creator>Rob Smith</dc:creator>
      <dc:date>2001-06-27T02:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: fbackup return value</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-return-value/m-p/2545499#M866313</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You must use the -I and -v options to make&lt;BR /&gt;sure that logging is done. if the -I is&lt;BR /&gt;omitted no logging will occur.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;Michael</description>
      <pubDate>Wed, 27 Jun 2001 02:06:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-return-value/m-p/2545499#M866313</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2001-06-27T02:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: fbackup return value</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-return-value/m-p/2545500#M866314</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The following script could solve your problem :&lt;BR /&gt;&lt;BR /&gt;# fbackup command will backup /users directory &lt;BR /&gt;fbackup -f /dev/rmt/0m -i /users&lt;BR /&gt;&lt;BR /&gt;if [[ $? = 0 ]]&lt;BR /&gt;then&lt;BR /&gt;# fbackup terminates correctly&lt;BR /&gt;# Put instructions related to that here&lt;BR /&gt;else&lt;BR /&gt;# fbackup terminates uncorrectly&lt;BR /&gt;# Put instructions related to that here&lt;BR /&gt;fi</description>
      <pubDate>Wed, 27 Jun 2001 04:02:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-return-value/m-p/2545500#M866314</guid>
      <dc:creator>Magdi KAMAL</dc:creator>
      <dc:date>2001-06-27T04:02:12Z</dc:date>
    </item>
  </channel>
</rss>

