Databases: PostgreSQL Backup and Restore
Michele Brodoloni (contact me)
This class can be used to generate backups of PostgreSQL.
It accesses a given database and generates SQL statements that can be used to recreate the database tables and the values stored on their rows. The generated SQL is stored in a given file.
The class can also restore a database from a previously generated backup by executing the SQL statements stored in a backup file.
Click here for detailed information about this class on phpclasses.org