From: | Martín Marqués <martin(at)bugs(dot)unl(dot)edu(dot)ar> |
---|---|
To: | PGSQL <pgsql-php(at)postgresql(dot)org> |
Subject: | Re: backup postgres database |
Date: | 2002-03-13 22:03:59 |
Message-ID: | 20020313220401.82428FCA2@bugs.unl.edu.ar |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-php |
On Mié 13 Mar 2002 15:51, you wrote:
> Hi,
>
> pg_dump and psql are your friends.
>
> Dump the database with pg_dump, take the file and insert it into psql
> on the other machine. Details are covered in the manpages of these
> programs.
>
> Crude (without options): pg_dump your_db > your_db.dump
> psql < your_db.dump
This will almost always give an error (even though lots of docs have this
sintaxis). That's because you didn't tell psql which database to connect to,
so he'll try to connect to a database with the name of the user (in my case,
that would be martin, or postgres in the case of administration duties).
My 2 cents
--
Porqué usar una base de datos relacional cualquiera,
si podés usar PostgreSQL?
-----------------------------------------------------------------
Martín Marqués | mmarques(at)unl(dot)edu(dot)ar
Programador, Administrador, DBA | Centro de Telematica
Universidad Nacional
del Litoral
-----------------------------------------------------------------
From | Date | Subject | |
---|---|---|---|
Next Message | Chris | 2002-03-14 01:38:28 | Re: backup postgres database |
Previous Message | Martín Marqués | 2002-03-13 22:00:59 | Re: backup postgres database |