Skip to content

Configuration Guide

1. Environment Variables

Variable Name Description Default Value
KUBACKUP_PORT Web service port 8080
KUBACKUP_DATA_DIR Data storage directory /data
KUBACKUP_LOG_LEVEL Log level (debug, info, warn, error) info
KUBACKUP_DB_TYPE Database type (sqlite, mysql) sqlite
KUBACKUP_DB_HOST Database host (when using MySQL) localhost
KUBACKUP_DB_PORT Database port (when using MySQL) 3306
KUBACKUP_DB_NAME Database name (when using MySQL) kubackup
KUBACKUP_DB_USER Database username (when using MySQL) root
KUBACKUP_DB_PASSWORD Database password (when using MySQL) password

2. Configuration File

The configuration file is located at /opt/kubackup/config.yml. You can modify it according to your needs.

server:
  port: 8080
  data_dir: /data
  log_level: info

database:
  type: sqlite
  host: localhost
  port: 3306
  name: kubackup
  user: root
  password: password

After modifying the configuration file, you need to restart the service for the changes to take effect:

cd /opt/kubackup && docker-compose restart