tkp.db.dump – Dump database backup to file¶
Dump database schema and content
-
tkp.db.dump.dump_db(engine, hostname, port, dbname, dbuser, dbpass, output)[source]¶ Dumps a database
Parameters: - engine – the name of the database system (either postgresql)
- hostname – the hostname of the database
- port – the port of the database server
- dbname – the database name to be dumped
- dbuser – the user authorised to do the dump
- dbpass – the pw for the user
- output – the output file to which the dump is written