From: Peter Jansen <empty@empty.com>
To: pgsql-admin@postgresql.org
Subject: Re: how to cron pg_dump and vaccum
Date: Wed, 13 Mar 2002 14:07:18 GMT
Message-ID: <q2Jj8.37$Bu1.756@nreader3.kpnqwest.net> (raw)
References: <a5vjod$2032$1@jupiter.hub.org>
> I want to program pg_dump in crontab but with authentification of user
> pg_dump prompt a user name and password.
> how can i backup my database automatic (one backup for a day).
> pg_version :7.0
This is my backup script: (1 line)
su -c "PGPASSWORD=;export
PGPASSWORD;pg_dumpall>/var/lib/pgsql/postgres_backup" postgres
PGPASSWORD is your postgreSQL administrator password.
I use pg_dumpall to dump all databases in one time.
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: empty@empty.com
Subject: Re: how to cron pg_dump and vaccum
In-Reply-To: <q2Jj8.37$Bu1.756@nreader3.kpnqwest.net>
References: <a5vjod$2032$1@jupiter.hub.org> <q2Jj8.37$Bu1.756@nreader3.kpnqwest.net>
* 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