Skip to main content
Version: TeamForge 23.0

db.py

This script can be used only for the PostgreSQL service. Don't run this script on a remote database. Execute the script only when the database is up and running.

Usage

Run this script as follows:

./db.py --action=<action> --path=<destination directory>

Options

Mandatory options:

OptionDescription
-a | --actionAction to be performed. You can pass either dump or restore as an option.
-f | --pathPath where the database backup file will be created. Must be a directory owned by the postgresql user (usually /var/lib/pgsql/13.4 /). Can be a new directory.

Other options:

OptionDescription
-t | --typeSpecifies the type of database (ctf or reporting).
-h | --helpPrint this usage message and exit.