Re: Backups and restores. - Mailing list pgsql-general

From scott.marlowe
Subject Re: Backups and restores.
Date
Msg-id Pine.LNX.4.33.0306100907300.13190-100000@css120.ihs.com
Whole thread Raw
In response to Backups and restores.  (Brian Avis <brian.avis@searhc.org>)
List pgsql-general
On Fri, 6 Jun 2003, Brian Avis wrote:

>
> I am upgrading my workstation to 7.3.3.   I have some database backups
> that were created with this command.
>
> /usr/local/pgsql/bin/pg_dump $db | gzip > /usr/local/pgsql/backups/$filename
>
> Which generates this sort of file.
>
> pgdump_2003-6-5-csp.gz
> When I try to use pg_restore from 7.3.3 to restore that file with this
> command.
> ./bin/pg_restore -d csp pgdump_2003-6-5-csp
> Or even this one.
> ./bin/pg_restore -d csp pgdump_2003-6-5-csp.gz
>
> I get this error.
>
> pg_restore: [archiver] input file does not appear to be a valid archive

Are you un gzipping the file before feeding it to pg_restore?


pgsql-general by date:

Previous
From: "scott.marlowe"
Date:
Subject: Re: [HACKERS] SAP and MySQL ... [and Benchmark]
Next
From:
Date:
Subject: Dependency tracking while dropping a database.