Re: Script for Automatic Backups of IDS
Posted in 1998
New contributions are of course welcome, but in this case you might
want to check the FAQ (see my sig) for why you do *not* want to use
this simple script. If someone forgot to insert the tape properly one
day or some other tape related error happened it might fill up your
disk when run.
On 15 Sep 1998 12:07:36 GMT, "Foo Chin" <swod@silkroute.com> wrote:
>Hi,
>
>
>I would like to donate this script for automatic backing up of IDS on
>Solaris using a cron job.
>
>#!/sbin/sh
>#
># Copyright (C) 1998 System Admin team
># SilkRoute Ventures Pte Ltd
># Coded by Isaiah Chua
># 3 July 1998
>#
># Feel free to port it for use on other Sun servers
># Best run under Bourne shell
># Under Solaris 2.5.1
># For Informix
>#
># Last modified: 10 July 1998 at 1040 hrs (revision 5)
># with Walrus and Swod (swod@silkroute.com)
>#
># This piece of code automatically backs up the IDS
># For use in cron jobs.
>
> INFORMIXDIR=/opt/informix> export INFORMIXDIR
> ONCONFIG=onconfig.tourism> export ONCONFIG
> INFORMIXSERVER=tourism_online> export INFORMIXSERVER
> DBCENTURY=C
> export DBCENTURY
> cd /opt/informix/bin
># The follwing line place a return character to automatically run the
>backup script
> echo "\\r" | ./ontape -s -L 0
>
># End of script
Nils Myklebust
NM Data AS
Norway
E-mail: Nils.Myklebust@nmdata.com
FAQ at: http://www.iiug.org/techinfo/faq/faq_top.html
(Now with ODBC info under "Third party products".)