pub enum DumpFormat {
Zip,
Dump,
}
Expand description
The format for a database dump
Variants§
Zip
Output a zipfile containing the SQL dump in “plain” format, manifest, and filestore
Note that with this mode, the database is dumped to a Python NamedTemporaryFile first, then to the out stream - this means that the backup takes longer, and probably involves some filesystem writes.
Also note that the SQL format is “plain”; that is, it’s a text file containing SQL statements. This style of database dump is slightly less flexible when importing (e.g., you cannot choose to exclude some tables during import).
See the Postgres pg_dump
docs for more info on “plain” dumps (-F
option).
Dump
Output a .dump
file containing the SQL dump in “custom” format
This style of database dump is more flexible on the import side (e.g., you can choose to exclude some tables from the import), but does not include the filestore.
See the Postgres pg_dump
docs for more info on “custom” dumps (-F
option).