Re: how to cron pg_dump and vaccum

From: "Peter Jansen" <empty(at)empty(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: how to cron pg_dump and vaccum
Date: 2002-03-13 14:07:18
Message-ID: q2Jj8.37$Bu1.756@nreader3.kpnqwest.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

> 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.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Gaetano Mendola 2002-03-13 15:11:24 Re: Dependence beetwen Function
Previous Message Henshall, Stuart - WCP 2002-03-13 11:59:59 Re: client connection