Skip to main content

Backups

Like all technology, backing up configuration files and data is paramount, in the case of Knocknoc the Server and Agent locations to capture are found below.

Server

Data resides in two locations; disk and database.

For Linux, the default installation location is /opt/knocknoc/

For Windows, the default installation location is C:\Program Files (x86)\Knocknoc-Agent\

Within those folders, these sub-folders contain data which should be backed up.

  • "etc/" which contains the Server configuration file(s) 
  • "var/" which contains the Server TLS/SSL keys/certificates and database if using SQLite (Prior to November 2025)

Separately, your Postgres database should be backed up. If you are backing up the entire Server machine/VM, this is naturally covered. If you're using a third-party database/database service, ensure that is backed up. However if you are running locally and want to capture the database periodically, use either pg_dump or pg_basebackup.

Agent

For Linux, the default installation location is /opt/knocknoc-agent/

For Windows, the default installation location is C:\Program Files (x86)\Knocknoc-Agent\

Within those folders, these sub-folders contain data which should be backed up.

  • "etc/" which contains the Agent configuration file(s) 
  • "var/" which contains the Agent private key(s) and is a control-layer working directory

Note the orchestration agent does not have an on-disk database.