Re: ONTAPE as cron script (error)
Posted in 1997
andreas.zeugswetter@telecom.at — — source: Informix-list mailing list archive (1991-1998)
Hi,
We use a very similar approach as you do and since you were so nice to
the community I would like to warn you of problems with your script.
kill -9 $bgpid
is very dangerous, since it could cut off some
pages from the end of the backup.
You need to replace the line with:
wait $bgpid
This will wait for gzip to finish after the pipe is closed
by ontape.
I also use split -b512m after the gzip, because our backups
are larger than 2 Gb.
We also use gzip --fast because it compresses nearly as good
and gives much better performance.
best regards
Andreas