Re: script to automate archives?
Posted in 1998
En P F SIEGEL va escriure el dia 20 Oct 98, a les 0:25:
> Does anyone out there have a shell script or other way to automatically
> run a database archive nightly? I'm using informix v5 on hpux v10.10. My
> data fits onto one tape, so the archive can be unattended. Thanks in
> advance. peter pfsiegel@aol.com
>
I'm using the next script some taimes ago and it wotks fine.
----- Cut here--------------
INFORMIXDIR=<_your_informix_dir_>export INFORMIXDIR
PATH=/usr/bin:/usr/ucb:/etc:${INFORMIXDIR}/bin:${INFORMIXDIR}/etc
export PATH
INFORMIXSERVER=<_your_informix_server_>export INFORMIXSERVER
DBDATE=DMY4/export DBDATE
DBMONEY=,
export DBMONEY
echo '\\n' | ontape -s -L 0
----- Cut here -------------------
---------------------------------------
Isidre PONS ROCA
BASE - Gesti' d'Ingressos Locals
(Diputacio de Tarragona)
Servei de Sistemes de Informacio
Av President Lluis Companys 12-C
43005 - Tarragona
SPAIN
Tel # +34 977 236731
Fax # +34 977 227302
http://www.altanet.org
ipons@dtgna.altanet.org
---------------------------------------