Re: System dump, but not in the default format

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: David Goodenough <david(dot)goodenough(at)btconnect(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: System dump, but not in the default format
Date: 2003-03-29 11:25:07
Message-ID: Pine.LNX.4.44.0303281502560.2204-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

David Goodenough writes:

> I would like to do a dump of all the DBs in a postgres system in the manner
> of pg_dumpall, but dumping the DBs out to individual files rather than one
> big one, and using a binary dump to make individual table restores easier.

for d in $(psql -At -c 'select datname from pg_database'); do pg_dump $d >$d.sql; done

--
Peter Eisentraut peter_e(at)gmx(dot)net

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2003-03-29 15:34:33 Re: DROP LANGUAGE error in pg_dump?
Previous Message Georg Steffers 2003-03-29 10:56:46 Re: Ideas, suggestions to rules (based on a real problem)