Home > Archive > PHP with PostgreSQL > June 2005 > pg_dump









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author pg_dump
enzo venegas palacios

2005-06-14, 8:25 pm


hi, i don't know use the pg_dump instruccion and i need create a backup,
please someone has an example.
thanks
enzo
---------------------------------------------------------

Imagina tus vacaciones perfectas... y hazlas realidad. Juega en http://sorteos.ya.com
ADSL + Llamadas 24 horas: desde 28,95 €/mes + IVA. Navega y habla de forma ilimitada. Sin compromiso de permanencia. http://acceso.ya.com/ADSLllamadas/


---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Christopher Kings-Lynne

2005-06-14, 8:25 pm

pg_dumpall <dbname> > backup.sql

Chris

enzo venegas palacios wrote:
> hi, i don't know use the pg_dump instruccion and i need create a backup,
> please someone has an example.
> thanks
> enzo
> ---------------------------------------------------------
>
> Imagina tus vacaciones perfectas... y hazlas realidad. Juega en http://sorteos.ya.com
> ADSL + Llamadas 24 horas: desde 28,95 €/mes + IVA. Navega y habla de forma ilimitada. Sin compromiso de permanencia. http://acceso.ya.com/ADSLllamadas/
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
> joining column's datatypes do not match



---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere
" to majordomo@postgresql
.org)

operationsengineer1@yahoo.com

2005-06-15, 11:25 am

i read that you can copy the contents of pgsql's data
directory to create a backup, too. in order to
restore the db, you clean out the data directory and
then copy the "backed up" files back in to the data
directory.

i have no experience using this method, but i thought
i'd mention it to see if anyone else has done this.

--- Christopher Kings-Lynne
< chriskl@familyhealth
.com.au> wrote:

> pg_dumpall <dbname> > backup.sql
>
> Chris
>
> enzo venegas palacios wrote:
> need create a backup,
>

---------------------------------------------------------
> realidad. Juega en http://sorteos.ya.com
> Navega y habla de forma ilimitada. Sin compromiso de
> permanencia. http://acceso.ya.com/ADSLllamadas/
> broadcast)---------------------------
> choose an index scan if your
>
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 2: you can get off all lists at once with the
> unregister command
> (send "unregister YourEmailAddressHere
" to
> majordomo@postgresql
.org)
>





____________________
______________
Yahoo! Mail Mobile
Take Yahoo! Mail with you! Check email on your mobile phone.
http://mobile.yahoo.com/learn/mail

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere
" to majordomo@postgresql
.org)

Christopher Kings-Lynne

2005-06-15, 11:25 am

Only problem is you need to stop PostgreSQL from running to do it...

operationsengineer1@
yahoo.com wrote:
> i read that you can copy the contents of pgsql's data
> directory to create a backup, too. in order to
> restore the db, you clean out the data directory and
> then copy the "backed up" files back in to the data
> directory.
>
> i have no experience using this method, but i thought
> i'd mention it to see if anyone else has done this.
>
> --- Christopher Kings-Lynne
> < chriskl@familyhealth
.com.au> wrote:
>
>
> ---------------------------------------------------------
>
>
>
>
>
>
> ____________________
______________
> Yahoo! Mail Mobile
> Take Yahoo! Mail with you! Check email on your mobile phone.
> http://mobile.yahoo.com/learn/mail
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere
" to majordomo@postgresql
.org)


---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Weber Matthias

2005-06-15, 11:25 am

don't think so. here an extract from man pages

To dump a database:
$ pg_dump mydb > db.out

To reload this database:
$ psql -d database -f db.out

bye
matthias


-----Original Message-----
From: Christopher Kings-Lynne & #91;mailto:chriskl@f
amilyhealth.com.au]
Sent: Wed 6/15/2005 5:48 PM
To: operationsengine
er1@yahoo.com
Cc: pgsql-php@postgresql.org
Subject: Re: [PHP] pg_dump
Only problem is you need to stop PostgreSQL from running to do it...

operationsengineer1@
yahoo.com wrote:
> i read that you can copy the contents of pgsql's data
> directory to create a backup, too. in order to
> restore the db, you clean out the data directory and
> then copy the "backed up" files back in to the data
> directory.
>
> i have no experience using this method, but i thought
> i'd mention it to see if anyone else has done this.
>
> --- Christopher Kings-Lynne
> < chriskl@familyhealth
.com.au> wrote:
>
>
> ---------------------------------------------------------
>
>
>
>
>
>
> ____________________
______________
> Yahoo! Mail Mobile
> Take Yahoo! Mail with you! Check email on your mobile phone.
> http://mobile.yahoo.com/learn/mail
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere
" to majordomo@postgresql
.org)


---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match




---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com