pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Guillaume LELARGE <gleu@wanadoo.fr>
To: Miriam Fernández Galicia <msenseif@servidor.unam.mx>
Cc: pgsql-admin@postgresql.org
Subject: Re: backup a table
Date: Wed, 11 Jun 2003 23:19:36 +0000
Message-ID: <200306112319.36176.gleu@wanadoo.fr> (raw)
In-Reply-To: <1055363103.26123.52.camel@tauri.dgsca.unam.mx>
References: <1055363103.26123.52.camel@tauri.dgsca.unam.mx>

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


-- 
Guillaume.



view thread (3+ messages)

Message-ID: <200306112319.36176.gleu@wanadoo.fr>
Permalink:  ../200306112319.36176.gleu@wanadoo.fr/
Also on:    postgresql.org/message-id/200306112319.36176.gleu@wanadoo.fr

 · 

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 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: gleu@wanadoo.fr, msenseif@servidor.unam.mx
  Subject: Re: backup a table
  In-Reply-To: <200306112319.36176.gleu@wanadoo.fr>
  References: <1055363103.26123.52.camel@tauri.dgsca.unam.mx> <200306112319.36176.gleu@wanadoo.fr>

* 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