Re: [GENERAL] pg_dump error codes

2006-01-03 Thread alexandre - aldeia digital
Michael Fuhr wrote: On Mon, Jan 02, 2006 at 08:45:28AM -0200, alexandre - aldeia digital wrote: In my Linux bash backup scripts, I wish to send an e-mail when an error occurs in pg_dump proccess. And if possible, I want to send the error output via e-mail. Anybody knows how to capture the ou

Re: [GENERAL] pg_dump error codes

2006-01-03 Thread SCassidy
Here is a simple one, that keeps 2 copies (one for odd-numbered days and one for even-numbered days), and emails the admin with the status: #!/bin/sh #This script is to back up the production databases DBLIST="db1 proddb1 proddb2" PGUSER=dbusername DUMPDIR=/disk1/database/backups MAILCMD=/bin/m

Re: [GENERAL] pg_dump error codes

2006-01-02 Thread Michael Fuhr
On Mon, Jan 02, 2006 at 08:45:28AM -0200, alexandre - aldeia digital wrote: > In my Linux bash backup scripts, I wish to send an e-mail when an error > occurs in pg_dump proccess. And if possible, I want to send the error > output via e-mail. > > Anybody knows how to capture the output and send

Re: [GENERAL] pg_dump error codes

2006-01-02 Thread Jon Jensen
On Mon, 2 Jan 2006, alexandre - aldeia digital wrote: In my Linux bash backup scripts, I wish to send an e-mail when an error occurs in pg_dump proccess. And if possible, I want to send the error output via e-mail. Anybody knows how to capture the output and send this to an e-mail ONLY if an