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 monetdb or 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
tkp.db.dump.dump_monetdb(hostname, port, dbname, dbuser, dbpass, output_filename)[source]

Dumps a MonetDB database in specified output file

tkp.db.dump.dump_pg(hostname, port, dbname, dbuser, dbpass, output_filename)[source]

Dumps a PostgreSQL database in specified output file