Re: how to cron pg_dump and vaccum - Mailing list pgsql-admin

From Peter Jansen
Subject Re: how to cron pg_dump and vaccum
Date
Msg-id q2Jj8.37$Bu1.756@nreader3.kpnqwest.net
Whole thread Raw
In response to how to cron pg_dump and vaccum  ("Fouad Fezzi" <fezzi@iup.univ-avignon.fr>)
List 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.




pgsql-admin by date:

Previous
From: rhairgroveNoSpam@Pleasebigfoot.com (Bob Hairgrove)
Date:
Subject: Re: tuning SQL
Next
From: Brian McCane
Date:
Subject: Re: postmaster shutdown