<?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: Writing program to automate backup. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/writing-program-to-automate-backup/m-p/84644#M480841</link>
    <description>Thank you to all the reply's.  I had heard there was a utility for this and your help pointed me in the right direction.!</description>
    <pubDate>Tue, 23 Apr 2002 12:13:49 GMT</pubDate>
    <dc:creator>Mick Terragrossa</dc:creator>
    <dc:date>2002-04-23T12:13:49Z</dc:date>
    <item>
      <title>Writing program to automate backup.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/writing-program-to-automate-backup/m-p/84640#M480837</link>
      <description>I'm working in HP-ux 11.0 and I need to start a backup program nightly at a time when no one is in the building.  I already have a program called bkcubs that I start manually which uses fbackup and works well.  I would like to design a program to run bkcubs at midnight every night.  Can anyone tell me how to do that?</description>
      <pubDate>Mon, 22 Apr 2002 17:03:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/writing-program-to-automate-backup/m-p/84640#M480837</guid>
      <dc:creator>Mick Terragrossa</dc:creator>
      <dc:date>2002-04-22T17:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Writing program to automate backup.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/writing-program-to-automate-backup/m-p/84641#M480838</link>
      <description>A service for this is built into Unix (including HP-UX). Look up the documentation for cron and crontab.</description>
      <pubDate>Mon, 22 Apr 2002 17:17:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/writing-program-to-automate-backup/m-p/84641#M480838</guid>
      <dc:creator>CA628575</dc:creator>
      <dc:date>2002-04-22T17:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Writing program to automate backup.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/writing-program-to-automate-backup/m-p/84642#M480839</link>
      <description>Hi there.&lt;BR /&gt;
I think, that you work as sysadmin and you have got the root access.&lt;BR /&gt;
&lt;BR /&gt;
Here a little script, that will help you to change your crontab settings :&lt;BR /&gt;
--------------------------------------&lt;BR /&gt;
#!/bin/sh&lt;BR /&gt;
cd /var/tmp&lt;BR /&gt;
# reading out crontab for user&lt;BR /&gt;
   crontab  -l &amp;gt; crontab.root&lt;BR /&gt;
# editing the file&lt;BR /&gt;
   vi crontab.root&lt;BR /&gt;
# reading in contents to crontab&lt;BR /&gt;
   crontab crontab.root&lt;BR /&gt;
--------------------------------------------&lt;BR /&gt;
&lt;BR /&gt;
explanation of crontab line :&lt;BR /&gt;
&lt;BR /&gt;
############################################################&lt;BR /&gt;
# Minute   Hour    Month-Day   Month   Weekday   Command   #&lt;BR /&gt;
# _________________________________________________________#&lt;BR /&gt;
############################################################&lt;BR /&gt;
#################&lt;BR /&gt;
# OmniBack II&lt;BR /&gt;
#################&lt;BR /&gt;
&lt;BR /&gt;
0,15,30,45 * * * * /opt/omni/sbin/omnitrig&lt;BR /&gt;
00 01 * * 1-5 /usr/local/bin/bkcubs # suggested&lt;BR /&gt;
00 01 * * 6   /usr/local/bin/bkcubs # suggested&lt;BR /&gt;
---------------------------------------------&lt;BR /&gt;
&lt;BR /&gt;
Hope, that will help&lt;BR /&gt;
Rgds&lt;BR /&gt;
Alexander M. Ermes&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Apr 2002 05:04:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/writing-program-to-automate-backup/m-p/84642#M480839</guid>
      <dc:creator>BR19682</dc:creator>
      <dc:date>2002-04-23T05:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Writing program to automate backup.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/writing-program-to-automate-backup/m-p/84643#M480840</link>
      <description>Mick,&lt;BR /&gt;
&lt;BR /&gt;
You don't even have to go through all of the steps listed above.  You can just type "crontab -e root" to edit the crontab.  That will bring you into a VI session to edit the crontab and move it into place when you are done. The format of the file is as described above.  If you don't want your jobs to run as root, substitute anyone's user id instead of root.&lt;BR /&gt;
&lt;BR /&gt;
--Joe</description>
      <pubDate>Tue, 23 Apr 2002 11:35:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/writing-program-to-automate-backup/m-p/84643#M480840</guid>
      <dc:creator>CA612148</dc:creator>
      <dc:date>2002-04-23T11:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Writing program to automate backup.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/writing-program-to-automate-backup/m-p/84644#M480841</link>
      <description>Thank you to all the reply's.  I had heard there was a utility for this and your help pointed me in the right direction.!</description>
      <pubDate>Tue, 23 Apr 2002 12:13:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/writing-program-to-automate-backup/m-p/84644#M480841</guid>
      <dc:creator>Mick Terragrossa</dc:creator>
      <dc:date>2002-04-23T12:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Writing program to automate backup.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/writing-program-to-automate-backup/m-p/84645#M480842</link>
      <description>I use SAM to set up my backup. It is SAM -&amp;gt; Backup and Recovery -&amp;gt; Automated Backups -&amp;gt; Add an Automated Backups</description>
      <pubDate>Tue, 23 Apr 2002 13:55:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/writing-program-to-automate-backup/m-p/84645#M480842</guid>
      <dc:creator>Li_7</dc:creator>
      <dc:date>2002-04-23T13:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Writing program to automate backup.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/writing-program-to-automate-backup/m-p/84646#M480843</link>
      <description>Mick:  cron job can fail because $PATH is limited.  You may need to add the statement&lt;BR /&gt;
    PATH=$PATH:/a/b:/x/y&lt;BR /&gt;
to your script.  cron will send errors as mail to the cronfile owner (root), or you can add&lt;BR /&gt;
/x/y/bkups &amp;gt; /tmp/bkups.log 2&amp;gt;&amp;amp;1&lt;BR /&gt;
    Do this until things are working, then normally you change the call to:&lt;BR /&gt;
/x/y/bkups &amp;gt; /dev/null  &lt;BR /&gt;
    Errors will still get mailed.</description>
      <pubDate>Wed, 24 Apr 2002 02:57:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/writing-program-to-automate-backup/m-p/84646#M480843</guid>
      <dc:creator>Bill Earley</dc:creator>
      <dc:date>2002-04-24T02:57:26Z</dc:date>
    </item>
  </channel>
</rss>

