pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
how to cron pg_dump and vaccum
2+ messages / 2 participants
[nested] [flat]

* how to cron pg_dump and vaccum
@ 2002-03-04 11:11 Fouad Fezzi <fezzi@iup.univ-avignon.fr>
  2002-03-13 14:07 ` Re: how to cron pg_dump and vaccum Peter Jansen <empty@empty.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Fouad Fezzi @ 2002-03-04 11:11 UTC (permalink / raw)
  To: pgsql-admin

Hi

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

Thanks

--
_______________________________
Fouad Fezzi
Ingenieur Réseau
IUP Institut Universitaire Professionnalisé
Universite d'Avignon et des Pays de Vaucluse
339 ch. des Meinajaries
tel : (+33/0) 4 90 84 35 50
BP 1228 - 84911 AVIGNON CEDEX 9
fax : (+33/0) 4 90 84 35 01
http://www.iup.univ-avignon.fr
_________________________________





^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: how to cron pg_dump and vaccum
  2002-03-04 11:11 how to cron pg_dump and vaccum Fouad Fezzi <fezzi@iup.univ-avignon.fr>
@ 2002-03-13 14:07 ` Peter Jansen <empty@empty.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Peter Jansen @ 2002-03-13 14:07 UTC (permalink / raw)
  To: 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.






^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2002-03-13 14:07 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-03-04 11:11 how to cron pg_dump and vaccum Fouad Fezzi <fezzi@iup.univ-avignon.fr>
2002-03-13 14:07 ` Peter Jansen <empty@empty.com>

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