Re: ONTAPE as cron script (error)
Posted in 1997
Sujit Pal — — source: Informix-list mailing list archive (1991-1998)
Andreas
Thank you very much for your warnings. I am going to change my script
in accordance with your advice. For the benefit of the people who have
asked for (and got) my script, I am including your advice for the
newsgroup as well.
} 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.
}
Thanks again
Sujit