Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Admin > pg_restore test...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 4991 of 5549
Post > Topic >>

pg_restore test procedures (a bit OT)

by glynastill@[EMAIL PROTECTED] (Glyn Astill) May 16, 2008 at 04:43 PM

Hi chaps,

I was just wondering if anyone has any clever way of testing their backups
=
taken with pg_dump on a daily basis?

On a slightly separate note,

I've setup a daily restore onto a staging server that I intend to also use
=
to test the dumps, at the moment I've just set up a cron job. I'm sure
capt=
uring the output would be sufficient, however I'm having problems getting
i=
t into by logfile.

su - $PGUSER -c "pg_restore -h localhost -U postgres --disable-triggers -c
=
-d $database $backup_dir/$server-$database-data.gz" >> $logfile

or=20

su - $PGUSER -c "pg_restore -h localhost -U postgres --disable-triggers
-c -d $database $backup_dir/$server-$database-data.gz >> $logfile"

won't let me capture it.

How dumb am I?


      __________________________________________________________
Sent from Yahoo! Mail.
A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html

--=20
Sent via pgsql-admin mailing list (pgsql-admin@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
 




 2 Posts in Topic:
pg_restore test procedures (a bit OT)
glynastill@[EMAIL PROTECT  2008-05-16 16:43:04 
Re: pg_restore test procedures (a bit OT)
phillip.smith@[EMAIL PROT  2008-05-19 10:05:03 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 17:14:10 CST 2008.