<?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 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/fbackup/m-p/2906914#M106293</link>
    <description>I would not rely too much on the "-V filename" method, because, in the context of fbackup, "successful" is a relative term, i.e. what does it do for exit codes (RETURN VALUE) 1 and 4, and what does that mean for *you*?</description>
    <pubDate>Wed, 19 Feb 2003 07:34:23 GMT</pubDate>
    <dc:creator>Frank Slootweg</dc:creator>
    <dc:date>2003-02-19T07:34:23Z</dc:date>
    <item>
      <title>fbackup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fbackup/m-p/2906908#M106287</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I'm trying to make a root's cron scheduled script with the following features:&lt;BR /&gt;&lt;BR /&gt;1.- Redirect default the cron of root's mail output to a specific file.&lt;BR /&gt;2.- Take the final command fbackup status ($?) to evaluate a specific action inside of the script.&lt;BR /&gt;&lt;BR /&gt;I'm doing this by the following piped commands:&lt;BR /&gt;&lt;BR /&gt;fbackup -0 -v -i / -f /dev/rmt/0m 2&amp;gt;&amp;amp;1|tee /&lt;FILE&gt;&lt;BR /&gt;STATUS=$?&lt;BR /&gt;&lt;BR /&gt;With this I am achieving redirect the cron fbackup output to /&lt;FILE&gt; instead of /var/mail/root file, but when immediately I ask for the status ($?), it is always shown me the status value of the "tee" command instead of the "fbackup" command, being always status zero. Some recommendation in this respect?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;/FILE&gt;&lt;/FILE&gt;</description>
      <pubDate>Tue, 18 Feb 2003 11:30:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fbackup/m-p/2906908#M106287</guid>
      <dc:creator>Jose Mosquera</dc:creator>
      <dc:date>2003-02-18T11:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: fbackup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fbackup/m-p/2906909#M106288</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I think the easy way out of this problem is to remove the tee command and just redirect the output of fbackup to a file, ie:&lt;BR /&gt;&lt;BR /&gt;fbackup -0 -v -i / -f /dev/rmt/0m 2&amp;gt;&amp;amp;1 &amp;gt;whatever &lt;BR /&gt;STATUS=$? &lt;BR /&gt;&lt;BR /&gt;This allows STATUS to reflect fbackup's return code.  Tee does 2 things, it sends stdin to the output file plus it also sends stdin to stdout, which I don't believe is needed here.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;&lt;BR /&gt;Darren.&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Feb 2003 11:44:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fbackup/m-p/2906909#M106288</guid>
      <dc:creator>Darren Prior</dc:creator>
      <dc:date>2003-02-18T11:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: fbackup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fbackup/m-p/2906910#M106289</link>
      <description>Darren,&lt;BR /&gt;&lt;BR /&gt;I've tried your recomendation before, but didn't work fine, the file "whatever" just is created with cero file size. Just try with a little test situation, i.e:&lt;BR /&gt;&lt;BR /&gt;fbackup -0 -v -i /&lt;TEST-DIR&gt; -f /tmp/&lt;BACK_FILE_DEV&gt; 2&amp;gt;&amp;amp;1 &amp;gt; /tmp/fback.log;echo $?&lt;BR /&gt;&lt;BR /&gt;The $? variable are ok but /tmp/fback.log is empty!&lt;BR /&gt;&lt;BR /&gt;Rgds.&lt;/BACK_FILE_DEV&gt;&lt;/TEST-DIR&gt;</description>
      <pubDate>Tue, 18 Feb 2003 12:46:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fbackup/m-p/2906910#M106289</guid>
      <dc:creator>Jose Mosquera</dc:creator>
      <dc:date>2003-02-18T12:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: fbackup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fbackup/m-p/2906911#M106290</link>
      <description>Standard out of fbackup is *not* used for *messages*, but only for the archive (if "-f -" is used, otherwise standard out is not used at all).&lt;BR /&gt;&lt;BR /&gt;*All* messages, i.e. both normal and error messages go to standard error, so you only have to re-direct standard error, i.e. "2&amp;gt;/path/somefile".&lt;BR /&gt;&lt;BR /&gt;Note: tar and cpio also do this, and so does *frecover* just for 'symmetry'.</description>
      <pubDate>Tue, 18 Feb 2003 13:59:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fbackup/m-p/2906911#M106290</guid>
      <dc:creator>Frank Slootweg</dc:creator>
      <dc:date>2003-02-18T13:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: fbackup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fbackup/m-p/2906912#M106291</link>
      <description>I think you should use -V FILENAME option as well and then the "FILENAME" will only be created if the backup is successful. you do not need to depend on $?...&lt;BR /&gt;&lt;BR /&gt;hope this works for you..&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Feb 2003 00:01:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fbackup/m-p/2906912#M106291</guid>
      <dc:creator>monasingh_1</dc:creator>
      <dc:date>2003-02-19T00:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: fbackup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fbackup/m-p/2906913#M106292</link>
      <description>Not sure if this is too late for you, but I've attached an 'fbackup' script that you run from cron. I use it here on special systems that I can't use OmniBack on.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;Michael</description>
      <pubDate>Wed, 19 Feb 2003 00:10:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fbackup/m-p/2906913#M106292</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2003-02-19T00:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: fbackup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fbackup/m-p/2906914#M106293</link>
      <description>I would not rely too much on the "-V filename" method, because, in the context of fbackup, "successful" is a relative term, i.e. what does it do for exit codes (RETURN VALUE) 1 and 4, and what does that mean for *you*?</description>
      <pubDate>Wed, 19 Feb 2003 07:34:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fbackup/m-p/2906914#M106293</guid>
      <dc:creator>Frank Slootweg</dc:creator>
      <dc:date>2003-02-19T07:34:23Z</dc:date>
    </item>
  </channel>
</rss>

