Re: backup a table - Mailing list pgsql-admin

From Miriam Fernández Galicia
Subject Re: backup a table
Date
Msg-id 1055368378.26130.74.camel@tauri.dgsca.unam.mx
Whole thread Raw
In response to Re: backup a table  (Guillaume LELARGE <gleu@wanadoo.fr>)
List pgsql-admin
Thank you Guillaume !!  :)
It works!!
   Miriam


El mié, 11 de 06 de 2003 a las 18:19, Guillaume LELARGE escribió:
Hi,

Le Mercredi 11 Juin 2003 20:25, vous avez écrit :
> Hello!!!
> I 'm new in Postgres 7.2 my question is, exists some way to backup only
> a table and no  the all database with pg_dump or another utility, too 

pg_dump allows you to do this using the -t switch.
Try something like  pg_dump -t mytable mydbname

You should probably redirect stdout to some file like this:  pg_dump -t mytable mydbname > myfile

If you need to specify your user, try something like this one:  pg_dump -U myuser -t mytable mydbname
Attachment

pgsql-admin by date:

Previous
From: Guillaume LELARGE
Date:
Subject: Re: backup a table
Next
From: Boris Klug
Date:
Subject: Indexes destroyed by REINDEX command