X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id ECC3530E002 for ; Wed, 11 Jun 2003 21:11:28 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 76892-09 for ; Wed, 11 Jun 2003 18:11:18 -0300 (ADT) Received: from mwinf0502.wanadoo.fr (smtp4.wanadoo.fr [193.252.22.26]) by svr1.postgresql.org (Postfix) with ESMTP id 784F830DFEB for ; Wed, 11 Jun 2003 18:11:17 -0300 (ADT) Received: from gina (unknown [81.49.135.221]) by mwinf0502.wanadoo.fr (SMTP Server) with ESMTP id 0041CE8003DC; Wed, 11 Jun 2003 23:11:16 +0200 (CEST) From: Guillaume LELARGE Organization: traduc.org To: Miriam =?iso-8859-1?q?Fern=E1ndez=20Galicia?= Subject: Re: backup a table Date: Wed, 11 Jun 2003 23:19:36 +0000 User-Agent: KMail/1.5 References: <1055363103.26123.52.camel@tauri.dgsca.unam.mx> In-Reply-To: <1055363103.26123.52.camel@tauri.dgsca.unam.mx> Cc: pgsql-admin@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200306112319.36176.gleu@wanadoo.fr> X-Archive-Number: 200306/115 X-Sequence-Number: 9106 Hi, Le Mercredi 11 Juin 2003 20:25, vous avez =E9crit : > 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=20 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 --=20 Guillaume.