Thread: Odd dump/restore question

Odd dump/restore question

From
numb3rs
Date:
I have Postgresql DB on a local machine that is updated periodically.
I could have a script that would run pg_dump and then ftp it up to the
host machine each 15 minutes say.

Would I then be able to run pg_restore each time autonomously on the
host machine to load the updated database?

Re: Odd dump/restore question

From
"Raymond O'Donnell"
Date:
On 3 Nov 2006 at 13:40, numb3rs wrote:

> Would I then be able to run pg_restore each time autonomously on the
> host machine to load the updated database?

I don't see why not.....but you might be better off using replication
- have a look at Slony.

http://gborg.postgresql.org/project/slony1/projdisplay.php

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

Raymond O'Donnell
Director of Music, Galway Cathedral, Galway, Ireland
rod@iol.ie
----------------------------------------------------------------------



Re: Odd dump/restore question

From
Andreas Kretschmer
Date:
numb3rs <vincej@gmail.com> schrieb:

> I have Postgresql DB on a local machine that is updated periodically.
> I could have a script that would run pg_dump and then ftp it up to the
> host machine each 15 minutes say.
>
> Would I then be able to run pg_restore each time autonomously on the
> host machine to load the updated database?

I think, you should read more about replication, for instance with
slony. http://gborg.postgresql.org/project/slony1/projdisplay.php


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°