<p dir="ltr">Thanks a lot for the advices. I've added the -c switch to pgdump command.<br></p>
<p dir="ltr">Pierre</p>
<div class="gmail_quote">Le 21 mars 2013 14:15, "Paul Robert Marino" <<a href="mailto:prmarino1@gmail.com">prmarino1@gmail.com</a>> a écrit :<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'll check the flags latter but yes pgdump is the right tool.<br>It can be done live thanks to PostgreSQLs MVCC but you may experience brief pauses to any operations that request a exclusive table lock on a table currently being backed up.<br>
<br>Also you may want to consider using an external PostgreSQL 9.x database for streaming replication. In 9.2 you can do cascading streaming replication which allows you to use pgpool as a proxy the connections, pool the connection (many to one connection), loadballance the reads, and automate your failover and live recovery of a cluster of 3 or more if 2 of them have quorum.<br>
The one bathing about using 9.x is you need to recreate the links to the default PostgreSQL jdbc driver to the one for 9.x or you will run into errors.<br><br><span style="font-family:Prelude,Verdana,san-serif"><br><br></span><span><div style="font-family:arial,sans-serif;font-size:12px;color:#999999">
-- Sent from my HP Pre3</div><br></span><span style="color:navy;font-family:Prelude,Verdana,san-serif"><hr align="left" style="width:75%">On Mar 21, 2013 3:35 AM, Pierre Casenove <<a href="mailto:pcasenove@gmail.com" target="_blank">pcasenove@gmail.com</a>> wrote: <br>
<br></span><div dir="ltr">Hello,<div>On the wiki, the following guide gives directions to backup oracle-xe:</div><div><a href="https://fedorahosted.org/spacewalk/wiki/SpacewalkBackup" target="_blank">https://fedorahosted.org/spacewalk/wiki/SpacewalkBackup</a><br>

</div><div><br></div><div>I'm using, postgresql 8.4, and currently, I'm backing up the application using pg_dump command, to backup spacewalk database and postgres database.</div><div>pg_dump spaceschema -Fc -f /data/backup/spaceschema.dmp</div>

<div>pg_dump postgres -Fc -f /data/backup/postgres.dmp<br></div><div><br></div><div>Is it sufficient to recover the database in case of a crash?</div><div>Can the pg_dump be run with spacewalk running, or does it have to be a cold backup?</div>

<div><br></div><div>Thanks in advance,</div><div><br></div><div>Pierre</div></div>
<br>_______________________________________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br></blockquote></div>