From: gajanan <gajanan.choudhari@codecindia.com>
To: pgsql-admin@postgresql.org
Subject: Postgresql Backup & Dump
Date: Sat, 10 Apr 2004 10:12:36 +0530
Message-ID: <003d01c41eb6$54575ff0$4f0aa8c0@codecindia.com> (raw)
Hi,
In my application I need to use old database present on postgersql at client site. For that I have created dump using
pg_dump -o db_name | gzip > db_dump
command at the client site and then downloaded the dump on local server. But when I am trying to restore, it only restore the empty database tables. I am using following command to restore the database.
/usr/local/pgsql/bin/psql db_name < db_dump
Client postgresql ver is 7.1 and I am using 7.4. Also the size of database is about 600 MB.
Is it depends on the size or version?
So what shuold be right procedure to restore the database at my server from the remote server?
Where I am going wrong?
Thank!
Regard,
Gajanan C.
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: gajanan.choudhari@codecindia.com
Subject: Re: Postgresql Backup & Dump
In-Reply-To: <003d01c41eb6$54575ff0$4f0aa8c0@codecindia.com>
References: <003d01c41eb6$54575ff0$4f0aa8c0@codecindia.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