From: Puddle <rotaecho@yahoo.com>
To: pgsql-admin@postgresql.org
Subject: pg_dump and table backup
Date: Fri, 24 Jun 2005 14:26:58 -0700 (PDT)
Message-ID: <20050624212658.63440.qmail@web32815.mail.mud.yahoo.com> (raw)
I've been reading about how to backup individual
tables with pg_dump. I noticed the -t, but can you
backup more then one table at a time with that flag?
I have a devel box that gets updated tables pushed to
the production.
So, we're looking to drop x amount of tables and
import that data to the production box.
Would something like :
pg_dump -O -f
$DB_BACKUP_PATH/$BKUP_DAY/PostgreSQL-$BKUP_DATE.sql
--clean -D \
-t table-1 \
-t table-2 \
-U dbuser db
It doesn't seem to like the -t flag. Any help here
would be appreciated.
Thanks!
-William
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
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: rotaecho@yahoo.com
Subject: Re: pg_dump and table backup
In-Reply-To: <20050624212658.63440.qmail@web32815.mail.mud.yahoo.com>
References: <20050624212658.63440.qmail@web32815.mail.mud.yahoo.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