I am working on integration PostgreSQL support into my DirectAdmin box, I mean additional module to create and manage PostgreSQL through DirectAdmin it looks similar to native MySQL DirectAdmin module and I almost finished it. However I would like to add the ability to make PostgreSQL backup during Directadmin backup creation and restore it on backup restore but how can I inject postgreSQL dump before user.tar.gz is created?