Re: Dump all in several files - Mailing list pgsql-general

From javier wilson
Subject Re: Dump all in several files
Date
Msg-id da884c20050315081438f5453d@mail.gmail.com
Whole thread Raw
In response to Re: Dump all in several files  (Frederic Massot <frederic@juliana-multimedia.com>)
List pgsql-general
On Tue, 15 Mar 2005 17:01:39 +0100, Frederic Massot
<frederic@juliana-multimedia.com> wrote:
> Lonni J Friedman wrote:
> > On Tue, 15 Mar 2005 16:43:01 +0100, Frederic Massot
> > <frederic@juliana-multimedia.com> wrote:
> >
> >>Hi,
> >>
> >>On the PostgreSQL 6.5 server I use this shell script (see below) for the
> >>backup all of the database in several files, one file per database.
> >>
> [...]
> >
> > Maybe i'm just not following you, but why can't you just do:
> > pg_dump $DBNAME >$DB_NAME
> >
> > where $DB_NAME is the name of each database on the box?
> >
>
> This script is called in a crontab the every day at 6 o'clock in the
> morning.

i have a /etc/backup/data.pgsql where i list all databases
i want to dump, then a script in /etc/cron.daily reads this file
and call pg_dump:
pg_dump -U postgres $1>$1.dump.sql

javier

pgsql-general by date:

Previous
From: Robert Treat
Date:
Subject: Re: Postgres jobs mailing list?
Next
From: Alvaro Herrera
Date:
Subject: Re: Dump all in several files