Skip to content

Introduction

backup-dev uses JSON for configuration files.

Structure

{
  "log": {},
  "inbounds": [],
  "outbounds": [],
  "endpoints": [],
  "route": {},
  "services": []
}

Fields

Key Format
log Log
inbounds Inbound
outbounds Outbound
endpoints Endpoint
route Route
services Service

Environment Variables

References in the format $VAR in string values are expanded from environment variables when the configuration is loaded.

Check

backup-dev check

Format

backup-dev format -w -c config.json -C config_directory

Merge

backup-dev merge output.json -c config.json -C config_directory