<?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 fbackup wierdness in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-wierdness/m-p/5009433#M770852</link>
    <description>&lt;!--!*#--&gt;Hi folks,&lt;BR /&gt;&lt;BR /&gt;we have a script that backups up just 35G of data to a local DLT8000. This has been running fine for a while.&lt;BR /&gt;&lt;BR /&gt;Now here's my problem -&lt;BR /&gt;fbackup runs a 23:40 via cron.&lt;BR /&gt;&lt;BR /&gt;The first thing the script does is echo the date to a temporary file (start time).&lt;BR /&gt;&lt;BR /&gt;The last thing the script does is echo the date to a different temporary file (finish time).&lt;BR /&gt;&lt;BR /&gt;Oct 19 04:40 fbackup_start_time.txt&lt;BR /&gt;Oct 19 05:56 fbackup_finish_time.txt&lt;BR /&gt;&lt;BR /&gt;cat fbackup_start_time.txt&lt;BR /&gt;Wed Oct 18 23:40:00 EDT 2006 : Fbackup started.&lt;BR /&gt;&lt;BR /&gt;cat fbackup_finish_time.txt&lt;BR /&gt;Thu Oct 19 00:56:32 EDT 2006 : Fbackup finished.&lt;BR /&gt;&lt;BR /&gt;What I don't understand is why the temp files don't get created until 5 hours after the call to create them.&lt;BR /&gt;It can be seen that the backup finished at 00:56 this morning, but the end of the script was not reached until 05:56, same 5 hour delay with the start.&lt;BR /&gt;&lt;BR /&gt;Im unsure if the script is at fault (been working ok until recently) or it's an fbackup issue. &lt;BR /&gt;&lt;BR /&gt;Below is our backup script.&lt;BR /&gt;&lt;BR /&gt;Any help would be appreciated.&lt;BR /&gt;Nick .&lt;BR /&gt;&lt;BR /&gt;# Script to backup to the DLT drive&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;#NHL  ###&lt;BR /&gt;echo "`date` : Fbackup started." &amp;gt; /tmp/fbackup_start_time.txt&lt;BR /&gt;#########&lt;BR /&gt;&lt;BR /&gt;# Which directory tree to backup&lt;BR /&gt;BACKUP_GRAPH_FILE=/var/adm/fbackupfiles/dlt2graph&lt;BR /&gt;&lt;BR /&gt;# fbackup config file&lt;BR /&gt;CONFIG=/var/adm/fbackupfiles/config&lt;BR /&gt;&lt;BR /&gt;# Index log file&lt;BR /&gt;INDEXLOG=/tmp/fbackup2dlt.index&lt;BR /&gt;&lt;BR /&gt;# Backup device&lt;BR /&gt;BACKUPDEVICE=/dev/rmt/2m&lt;BR /&gt;&lt;BR /&gt;# Log file&lt;BR /&gt;LOGFILE=/tmp/fbackup2dlt.log&lt;BR /&gt;&lt;BR /&gt;# Problem warning file&lt;BR /&gt;ERRORFILE=/tmp/fbackup2dlt.err&lt;BR /&gt;&lt;BR /&gt;# Backup OK file&lt;BR /&gt;BACKUPOK=/tmp/fbackup2dlt.ok&lt;BR /&gt;&lt;BR /&gt;# Fatal error file&lt;BR /&gt;FATAL=/tmp/fbackup2dlt.fatal&lt;BR /&gt;&lt;BR /&gt;rm -f $ERRORFILE $BACKUPOK $INDEXLOG $LOGFILE $FATAL &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;# Start the backup and log all messages to one file&lt;BR /&gt;(&lt;BR /&gt;date&lt;BR /&gt;/usr/sbin/fbackup -f $BACKUPDEVICE -c $CONFIG -g $BACKUP_GRAPH_FILE -I $INDEXLOG&lt;BR /&gt;ERRORCODE=$?&lt;BR /&gt;if [ $ERRORCODE -eq 0 -o $ERRORCODE -eq 4 ]; then&lt;BR /&gt; date &amp;gt; $BACKUPOK&lt;BR /&gt;else&lt;BR /&gt; date &amp;gt; $ERRORFILE&lt;BR /&gt; echo "fbackup exited with error code $ERRORCODE" &amp;gt;&amp;gt; $ERRORFILE&lt;BR /&gt;fi&lt;BR /&gt;) &amp;gt; $LOGFILE 2&amp;gt;&amp;amp;1&lt;BR /&gt;if [ -f $FATAL ]; then&lt;BR /&gt;        cat $FATAL &amp;gt;&amp;gt; $ERRORFILE&lt;BR /&gt;        if [ $ERRORCODE -eq 0 ]; then&lt;BR /&gt;        rm -f $BACKUPOK&lt;BR /&gt;                ERRORCODE=1&lt;BR /&gt;        fi&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;# NHL ###&lt;BR /&gt;echo "`date` : Fbackup finished." &amp;gt; /tmp/fbackup_finish_time.txt&lt;BR /&gt;#########&lt;BR /&gt;&lt;BR /&gt;exit $ERRORCODE&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 19 Oct 2006 03:07:02 GMT</pubDate>
    <dc:creator>NHL</dc:creator>
    <dc:date>2006-10-19T03:07:02Z</dc:date>
    <item>
      <title>fbackup wierdness</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-wierdness/m-p/5009433#M770852</link>
      <description>&lt;!--!*#--&gt;Hi folks,&lt;BR /&gt;&lt;BR /&gt;we have a script that backups up just 35G of data to a local DLT8000. This has been running fine for a while.&lt;BR /&gt;&lt;BR /&gt;Now here's my problem -&lt;BR /&gt;fbackup runs a 23:40 via cron.&lt;BR /&gt;&lt;BR /&gt;The first thing the script does is echo the date to a temporary file (start time).&lt;BR /&gt;&lt;BR /&gt;The last thing the script does is echo the date to a different temporary file (finish time).&lt;BR /&gt;&lt;BR /&gt;Oct 19 04:40 fbackup_start_time.txt&lt;BR /&gt;Oct 19 05:56 fbackup_finish_time.txt&lt;BR /&gt;&lt;BR /&gt;cat fbackup_start_time.txt&lt;BR /&gt;Wed Oct 18 23:40:00 EDT 2006 : Fbackup started.&lt;BR /&gt;&lt;BR /&gt;cat fbackup_finish_time.txt&lt;BR /&gt;Thu Oct 19 00:56:32 EDT 2006 : Fbackup finished.&lt;BR /&gt;&lt;BR /&gt;What I don't understand is why the temp files don't get created until 5 hours after the call to create them.&lt;BR /&gt;It can be seen that the backup finished at 00:56 this morning, but the end of the script was not reached until 05:56, same 5 hour delay with the start.&lt;BR /&gt;&lt;BR /&gt;Im unsure if the script is at fault (been working ok until recently) or it's an fbackup issue. &lt;BR /&gt;&lt;BR /&gt;Below is our backup script.&lt;BR /&gt;&lt;BR /&gt;Any help would be appreciated.&lt;BR /&gt;Nick .&lt;BR /&gt;&lt;BR /&gt;# Script to backup to the DLT drive&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;#NHL  ###&lt;BR /&gt;echo "`date` : Fbackup started." &amp;gt; /tmp/fbackup_start_time.txt&lt;BR /&gt;#########&lt;BR /&gt;&lt;BR /&gt;# Which directory tree to backup&lt;BR /&gt;BACKUP_GRAPH_FILE=/var/adm/fbackupfiles/dlt2graph&lt;BR /&gt;&lt;BR /&gt;# fbackup config file&lt;BR /&gt;CONFIG=/var/adm/fbackupfiles/config&lt;BR /&gt;&lt;BR /&gt;# Index log file&lt;BR /&gt;INDEXLOG=/tmp/fbackup2dlt.index&lt;BR /&gt;&lt;BR /&gt;# Backup device&lt;BR /&gt;BACKUPDEVICE=/dev/rmt/2m&lt;BR /&gt;&lt;BR /&gt;# Log file&lt;BR /&gt;LOGFILE=/tmp/fbackup2dlt.log&lt;BR /&gt;&lt;BR /&gt;# Problem warning file&lt;BR /&gt;ERRORFILE=/tmp/fbackup2dlt.err&lt;BR /&gt;&lt;BR /&gt;# Backup OK file&lt;BR /&gt;BACKUPOK=/tmp/fbackup2dlt.ok&lt;BR /&gt;&lt;BR /&gt;# Fatal error file&lt;BR /&gt;FATAL=/tmp/fbackup2dlt.fatal&lt;BR /&gt;&lt;BR /&gt;rm -f $ERRORFILE $BACKUPOK $INDEXLOG $LOGFILE $FATAL &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;# Start the backup and log all messages to one file&lt;BR /&gt;(&lt;BR /&gt;date&lt;BR /&gt;/usr/sbin/fbackup -f $BACKUPDEVICE -c $CONFIG -g $BACKUP_GRAPH_FILE -I $INDEXLOG&lt;BR /&gt;ERRORCODE=$?&lt;BR /&gt;if [ $ERRORCODE -eq 0 -o $ERRORCODE -eq 4 ]; then&lt;BR /&gt; date &amp;gt; $BACKUPOK&lt;BR /&gt;else&lt;BR /&gt; date &amp;gt; $ERRORFILE&lt;BR /&gt; echo "fbackup exited with error code $ERRORCODE" &amp;gt;&amp;gt; $ERRORFILE&lt;BR /&gt;fi&lt;BR /&gt;) &amp;gt; $LOGFILE 2&amp;gt;&amp;amp;1&lt;BR /&gt;if [ -f $FATAL ]; then&lt;BR /&gt;        cat $FATAL &amp;gt;&amp;gt; $ERRORFILE&lt;BR /&gt;        if [ $ERRORCODE -eq 0 ]; then&lt;BR /&gt;        rm -f $BACKUPOK&lt;BR /&gt;                ERRORCODE=1&lt;BR /&gt;        fi&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;# NHL ###&lt;BR /&gt;echo "`date` : Fbackup finished." &amp;gt; /tmp/fbackup_finish_time.txt&lt;BR /&gt;#########&lt;BR /&gt;&lt;BR /&gt;exit $ERRORCODE&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 19 Oct 2006 03:07:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-wierdness/m-p/5009433#M770852</guid>
      <dc:creator>NHL</dc:creator>
      <dc:date>2006-10-19T03:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: fbackup wierdness</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-wierdness/m-p/5009434#M770853</link>
      <description>Hi,&lt;BR /&gt;I would check your timezone settings.&lt;BR /&gt;When you cron a job only a minimum environment is supplied.&lt;BR /&gt;What happens if you run a cut-down backup from the command line ?</description>
      <pubDate>Thu, 19 Oct 2006 03:18:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-wierdness/m-p/5009434#M770853</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-10-19T03:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: fbackup wierdness</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-wierdness/m-p/5009435#M770854</link>
      <description>Hi Peter,&lt;BR /&gt;&lt;BR /&gt;I think your on the right track. &lt;BR /&gt;My $TZ is GMT0BST but when I look at /var/adm/cron/log it is using EDT !&lt;BR /&gt;&lt;BR /&gt;Im unsure of how that's happened or how to fix it. The time on the server itself is fine and the value of $TZ is correct.&lt;BR /&gt;&lt;BR /&gt;I've got a quick fbackup starting in a minute via cron so I'll see how that goes.&lt;BR /&gt;&lt;BR /&gt;Do you think I need to place TZ in the backup script to fix the problem ?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Nick .&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 19 Oct 2006 03:57:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-wierdness/m-p/5009435#M770854</guid>
      <dc:creator>NHL</dc:creator>
      <dc:date>2006-10-19T03:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: fbackup wierdness</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-wierdness/m-p/5009436#M770855</link>
      <description>Right I've got some results.&lt;BR /&gt;&lt;BR /&gt;An fbackup from the command line = no probs.&lt;BR /&gt;&lt;BR /&gt;Fbackup via cron: &lt;BR /&gt;I set a backup to start at 10.00 this morning - it did not start.&lt;BR /&gt;At 10:05 I changed the job to start at 05:10 and at 10.10 (real time) it started.&lt;BR /&gt;&lt;BR /&gt;Cron is running 5 hours behind schedule, using EDT instead of BST. I have no idea whats caused this but could anyone help me to fix cron please ?&lt;BR /&gt;&lt;BR /&gt;Many thanks,&lt;BR /&gt;Nick .</description>
      <pubDate>Thu, 19 Oct 2006 04:14:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-wierdness/m-p/5009436#M770855</guid>
      <dc:creator>NHL</dc:creator>
      <dc:date>2006-10-19T04:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: fbackup wierdness</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-wierdness/m-p/5009437#M770856</link>
      <description>Hi,&lt;BR /&gt;please check /etc/profile and ~/.profile of user you ran the test backup as.&lt;BR /&gt;Somewhere there should be a TZ variable set.&lt;BR /&gt;Otherwise try "env | grep -i TZ"&lt;BR /&gt;Include this value into your backup script via "export TZ=&lt;VALUE&gt;". Or include the /etc/TIMEZONE file.&lt;BR /&gt;&lt;BR /&gt;&lt;/VALUE&gt;</description>
      <pubDate>Thu, 19 Oct 2006 04:26:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-wierdness/m-p/5009437#M770856</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-10-19T04:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: fbackup wierdness</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-wierdness/m-p/5009438#M770857</link>
      <description>Hi Peter,&lt;BR /&gt;&lt;BR /&gt;thanks very much for your advice.&lt;BR /&gt;Before amending the script to set TZ I decided to just restart cron ... and that fixed it. A quick backup ran at the correct time and /var/adm/cron/log is showing BST as it should.&lt;BR /&gt;&lt;BR /&gt;Hopefully this is now resolved.&lt;BR /&gt;&lt;BR /&gt;Thanks again for you help,&lt;BR /&gt;Nick .&lt;BR /&gt;</description>
      <pubDate>Thu, 19 Oct 2006 04:50:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-wierdness/m-p/5009438#M770857</guid>
      <dc:creator>NHL</dc:creator>
      <dc:date>2006-10-19T04:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: fbackup wierdness</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-wierdness/m-p/5009439#M770858</link>
      <description>Nick, &lt;BR /&gt;       Have a look at the kernel parameter timezone.  The hp default is plus 420 which is eastern time 5 hours west of greenwich  if you set this to 0 the the os will use UTC (GMT) as its fundemental timezone if you set dst to 3 rather than 1 then western european  style is used for converting the display when the change over to summer time is made. These values are used by the os routines at start up because the full shell environment is not yet available to all of them . &lt;BR /&gt;Mike</description>
      <pubDate>Fri, 20 Oct 2006 03:51:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-wierdness/m-p/5009439#M770858</guid>
      <dc:creator>BUPA IS</dc:creator>
      <dc:date>2006-10-20T03:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: fbackup wierdness</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-wierdness/m-p/5009440#M770859</link>
      <description>Thanks Mike. I'll have a look at that.&lt;BR /&gt;&lt;BR /&gt;Nick .</description>
      <pubDate>Fri, 20 Oct 2006 03:56:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-wierdness/m-p/5009440#M770859</guid>
      <dc:creator>NHL</dc:creator>
      <dc:date>2006-10-20T03:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: fbackup wierdness</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-wierdness/m-p/5009441#M770860</link>
      <description>Cron daemon threw a fit somehow and thought it was running in EDT. Restartd cron - ok now.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 20 Oct 2006 03:58:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fbackup-wierdness/m-p/5009441#M770860</guid>
      <dc:creator>NHL</dc:creator>
      <dc:date>2006-10-20T03:58:10Z</dc:date>
    </item>
  </channel>
</rss>

