Skip site navigation (1) Skip section navigation (2)

Re: running pg_dumpall as a cron job

From: Andreas Kretschmer <akretschmer(at)spamfence(dot)net>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: running pg_dumpall as a cron job
Date: 2006-04-29 20:19:18
Message-ID: 20060429201918.GB25517@KanotixBox (view raw or flat)
Thread:
Lists: pgsql-novice
richard <richard(at)sheugh(dot)com> schrieb:

> Hi all 
> 
> I am trying to run pg_dumpall as a cron job. I find that while 
> pg_dump has an option -f to name a file for output this is 
> not available for pg_dumpall. After reading the manual, my  
> guess is that best practice is to run pg_dump for each database. 

No, you can use redirection:

pg_dumpall > dumpfile.sql


HTH, Andreas
-- 
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.                              (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly."    (unknow)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°

In response to

pgsql-novice by date

Next:From: Bruno Wolff IIIDate: 2006-04-29 20:19:24
Subject: Re: Trigger to force fields to lowercase at insert/update
Previous:From: Andreas KretschmerDate: 2006-04-29 20:17:08
Subject: Re: Trigger to force fields to lowercase at insert/update

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group