Query regarding back up

Started by Kallol Nandiover 22 years ago3 messagesgeneral
Jump to latest
#1Kallol Nandi
kallol.nandi@indussoft.com

How can I have a scheduled vacuum and backup of the databases in PostgreSql.
Does someone know it already?
I need it urgently.

Thanks,
Kallol.

#2scott.marlowe
scott.marlowe@ihs.com
In reply to: Kallol Nandi (#1)
Re: Query regarding back up

On Thu, 17 Jul 2003, Kallol Nandi wrote:

How can I have a scheduled vacuum and backup of the databases in PostgreSql.
Does someone know it already?
I need it urgently.

Use cron (I assume you're running Unix.)

A simple crontab entry to run 'vacuumdb -a -z -f' and pg_dump should do.

'man crontab' is a good place to start learning about cron.

#3Bruce Momjian
bruce@momjian.us
In reply to: Kallol Nandi (#1)
Re: Query regarding back up

Put pg_dumpall in cron. Use vacuumdb in cron too.

---------------------------------------------------------------------------

Kallol Nandi wrote:

How can I have a scheduled vacuum and backup of the databases in PostgreSql.
Does someone know it already?
I need it urgently.

Thanks,
Kallol.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073