Re: Schema backup

From: "Andrew L(dot) Gould" <algould(at)datawok(dot)com>
To: "Greg" <gh(at)san(dot)rr(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Schema backup
Date: 2003-10-03 15:48:58
Message-ID: 200310031048.58174.algould@datawok.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tuesday 30 September 2003 09:15 pm, Greg wrote:
> I also have troubles with pg_dump. I have a database called 'shipping' and
> it has many tables(I populated them via a script). To dump the database I
> did these steps:
>
> su greg and then pg_dump > /tmp/greg.dmp. A file greg.dmp gets created but
> it has nothing in it(0 bytes). Could you advise what was wrong, please?
>
> Thanks in advance, Greg
>

You forgot to tell pg_dump the name of the database. Try:
pg_dump shipping > /tmp/greg.dmp

Or, for a gzipped backup:
pg_dump shipping | gzip -c > /tmp/greg.dmp.gz

Best of luck,

Andrew Gould

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Robert Wille 2003-10-03 16:07:41 Re: LC_COLLATE=C not working
Previous Message Tom Lane 2003-10-03 15:42:54 Re: Postgres low end processing.