Use pg_dumg with format directory.