[IMP] Option to permit custom dump for backup

This improvement is necessary for future migrations.

It permits the user to get the original PostgreSQL custom dump that we
use to have until version 8.0.

@rim-odoo 
Considering the increase in complexity and that different formats basically don't have anything in common anymore, wouldn't it be a good idea to split them into different functions?