pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedEnd of Data test?
2+ messages / 2 participants
[nested] [flat]
* End of Data test?
@ 2008-05-30 18:17 Carol Walter <walterc@indiana.edu>
2008-06-01 23:25 ` Re: End of Data test? Phillip Smith <phillip.smith@weatherbeeta.com.au>
0 siblings, 1 reply; 2+ messages in thread
From: Carol Walter @ 2008-05-30 18:17 UTC (permalink / raw)
To: pgsql-admin
Hello,
I'm backing up my databases on Monday, Wednesday, and Fridays. I'm
writing a script to further automate this process. Is there a way
that I can test to make sure that pg_dump has actually backed up the
entire system. It seems like there should be a return code or
something that will tell me that there has been a normal completion.
Thanks,
Carol
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: End of Data test?
2008-05-30 18:17 End of Data test? Carol Walter <walterc@indiana.edu>
@ 2008-06-01 23:25 ` Phillip Smith <phillip.smith@weatherbeeta.com.au>
0 siblings, 0 replies; 2+ messages in thread
From: Phillip Smith @ 2008-06-01 23:25 UTC (permalink / raw)
To: 'Carol Walter' <walterc@indiana.edu>; pgsql-admin
> It seems like there should be a return code or
> something that will tell me that there has been a normal completion.
I check for return code 0 in my scripts...
$PG_DUMP --schema=${SCHEMA} ${DBNAME} > ${TMPFILE}
RETVAL=$?
if [ ${RETVAL} -eq 0 ] ; then
echo 'Done!'
else
echo "Error! Return value was ${RETVAL}"
fi
Cheers,
~p
THINK BEFORE YOU PRINT - Save paper if you don't really need to print this
*******************Confidentiality and Privilege Notice*******************
The material contained in this message is privileged and confidential to
the addressee. If you are not the addressee indicated in this message or
responsible for delivery of the message to such person, you may not copy
or deliver this message to anyone, and you should destroy it and kindly
notify the sender by reply email.
Information in this message that does not relate to the official business
of Weatherbeeta must be treated as neither given nor endorsed by Weatherbeeta.
Weatherbeeta, its employees, contractors or associates shall not be liable
for direct, indirect or consequential loss arising from transmission of this
message or any attachments
e-mail.
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2008-06-01 23:25 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2008-05-30 18:17 End of Data test? Carol Walter <walterc@indiana.edu>
2008-06-01 23:25 ` Phillip Smith <phillip.smith@weatherbeeta.com.au>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox