[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 
My target is to backward port this fix to Odoo 8.0. Is it okay to add functions?