Note: This method is obsolete. Consider using PostgreSQL 9 and streaming replication.
You may also be interested in pgbackup for backing up PostgreSQL 9.
This is a set of scripts for continously replicating a running PostgreSQL database to a live backup on a second host computer and for restoring a database from this live backup. The method used is described in the PostgreSQL manual.
Modified BSD