Re: Automated / starting Ontape level 0 backup
Posted in 1998
In article <6d49ng$f3p$1@news.xmission.com>, Sujit.Pal@alltel.com writes
>
> Tim
>
> The simplest way to do this is to create a shell script like so:
>
> #!/bin/ksh
> export INFORMIXSERVER=servername
> export ONCONFIG=onconfigFileName
> export INFORMIXDIR=informixdir
> export PATH=$INFORMIXDIR/bin:$PATH
> ontape -s -L 0 <<!>
> !
>
> and then put this job in your crontabs file to be executed at a
> specified time by cron. Make sure there is a writable tape in your
> tape drive pointed to by the environment variable TAPEDEV.
Remember to pipe this to head -100
If ontape runs out of space and requests a second tape it will just
still there looping and output the same question again and again..
>
> Alternatively, you could decide to dump your backup to disk. I have a
> shell script in the IIUG archives called IDBB.sh you may want to look
> at. Since I have multiple instances here, I have a file that specifies
> the backup schedule for each instance. I do the ontape backups to disk
> and pipe the backup through gzip to conserve disk space. If there are
> errors in the backup, the script sends me a email so I can look at it
> the next day.
>
> HTH
>
> Sujit Pal
>
>
>______________________________ Reply Separator _________________________________
>Subject: Automated / starting Ontape level 0 backup
>Author: "Tim Clifton" <tim.clifton@mexmil.com> at Internet
>Date: 2/20/98 4:59 PM
>
>
>Hello,
>
> I need to run an unattended Level 0 backup via the "ontape -s -L 0"
>command.
>Does anyone know how, or has anyone already done this? If so, could you
>point me in the right direction as I am new to Informix and databases in
>general? Any help is appreciated.
>tim.clifton@mexmil.com
--
David Williams
Maintainer of the Informix FAQ
Primary site (Beta Version) http://www.smooth1.demon.co.uk
Official site http://www.iiug.org/techinfo/faq/faq_top.html
I see you standin', Standin' on your own, It's such a lonely place for you, For
you to be If you need a shoulder, Or if you need a friend, I'll be here
standing, Until the bitter end...
So don't chastise me Or think I, I mean you harm...
All I ever wanted Was for you To know that I care