From: Ron St-Pierre <rstpierre@syscor.com>
To: Eduardo S. Fontanetti <dufuzzy@yahoo.com.br>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Dump and Restore
Date: Tue, 24 Aug 2004 09:28:15 -0700
Message-ID: <412B6C9F.8070301@syscor.com> (raw)
In-Reply-To: <20040824134032.69606.qmail@web40709.mail.yahoo.com>
References: <20040824134032.69606.qmail@web40709.mail.yahoo.com>
Eduardo S. Fontanetti wrote:
>How can I do a test if my dumping is really working, I
>can't apply the dump in my database, because it will
>overwrite a lot of data. I was thinking about restore
>in another database name, but I can't, it always
>restore on the original database.
>
>Somebody have a cooking recipe about to test if my
>backup is working fine, and will help if I need
>sometime?
>
>
<snip>
OK here's a recipe:
If you're using pg_dump as in:
pg_dump dbName > fileName
create your new database:
createdb myNewDB (don't forget your encoding)
and then restore from the dump:
psql -d myNewDB -f fileName
Ron
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: rstpierre@syscor.com, dufuzzy@yahoo.com.br, pgsql-general@postgresql.org
Subject: Re: Dump and Restore
In-Reply-To: <412B6C9F.8070301@syscor.com>
References: <20040824134032.69606.qmail@web40709.mail.yahoo.com> <412B6C9F.8070301@syscor.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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