Skip site navigation (1) Skip section navigation (2)

pg_dump and table backup

From: Puddle <rotaecho(at)yahoo(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: pg_dump and table backup
Date: 2005-06-24 21:26:58
Message-ID: (view raw or whole thread)
Lists: pgsql-admin
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
--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.



Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

pgsql-admin by date

Next:From: AlbertoDate: 2005-06-25 03:02:40
Subject: pg_dump -Fc does not dump indexes
Previous:From: Radu-Adrian PopescuDate: 2005-06-24 17:10:04
Subject: Re: Instalacion de Postgresql en Linux con Varios procesadores

Privacy Policy | About PostgreSQL
Copyright © 1996-2015 The PostgreSQL Global Development Group