def do_dumpdb(self, args): if not self.m2ee.config.is_using_postgresql(): logger.error("Only PostgreSQL databases are supported right now.") return if len(args) > 0: pgutil.dumpdb(self.m2ee.config, args) else: pgutil.dumpdb(self.m2ee.config)
def do_dumpdb(self, args): if not self.m2ee.config.is_using_postgresql(): logger.error("Only PostgreSQL databases are supported right now.") return pgutil.dumpdb( self.m2ee.config.get_pg_environment(), self.m2ee.config.get_pg_dump_binary(), self.m2ee.config.get_database_dump_path(), )