PostgreSQL Backup Script. Ported from AutoMySQLBackup.