pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Henrique Teófilo <henriquetft@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Errors recovering database
Date: Wed, 21 Sep 2011 10:35:46 -0400
Message-ID: <22490.1316615746@sss.pgh.pa.us> (raw)
In-Reply-To: <CAJhkEk63dFkxOUxmJKoGwkCSD+tcp5aYsHL89HZxG6e4dTOYzA@mail.gmail.com>
References: <CAJhkEk63dFkxOUxmJKoGwkCSD+tcp5aYsHL89HZxG6e4dTOYzA@mail.gmail.com>

=?ISO-8859-1?Q?Henrique_Te=F3filo?= <henriquetft@gmail.com> writes:
> Dumping:
> pg_dump -p -U'postgres' -C -f ./dumpbkp mydatabase
> tar -cvzf dumpbkp.tar.gz dumpbkp

> Restoring:
> cat dumpbkp.tar.gz | gunzip | psql -U'postgres'

AFAICS that ought not work at all, not even a little bit.  You've
wrapped the dump script into a tar archive, and then not unwrapped it.

The pg_dump argument list seems a bit less than kosher, as well ...
doesn't -p require an argument?

			regards, tom lane



view thread (3+ messages)  latest in thread

Message-ID: <22490.1316615746@sss.pgh.pa.us>
Permalink:  ../22490.1316615746@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/22490.1316615746@sss.pgh.pa.us

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, henriquetft@gmail.com
  Subject: Re: Errors recovering database
  In-Reply-To: <22490.1316615746@sss.pgh.pa.us>

* 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