46 lines
1.5 KiB
Bash
46 lines
1.5 KiB
Bash
# Copy to .env and customise on each Docker server. Keep .env out of Git.
|
|
SOURCE_BASE_DIR="/dockervolumes"
|
|
BACKUP_ROOT="/dockerbackups"
|
|
CONTAINERS_FILE="containers.local.txt"
|
|
BACKUP_HOSTNAME="examplehostname"
|
|
|
|
# Main pipeline method order. Add future method names here.
|
|
BACKUP_METHODS="rclone smb"
|
|
KEEP_COUNT=5
|
|
PULL_IMAGES=1
|
|
START_TIMEOUT=90
|
|
WAIT_INTERVAL=3
|
|
START_RETRIES=1
|
|
LOCK_FILE="/run/lock/docker-backup.lock"
|
|
ZSTD_EXTRA_OPTS="-T0 -12"
|
|
# Space-separated paths as they appear inside each project archive.
|
|
# Example: TAR_EXCLUDES="nextcloud/data otherproject/cache"
|
|
TAR_EXCLUDES=""
|
|
# Final backup-run reports retained locally for this many days.
|
|
BACKUP_HISTORY_DAYS=30
|
|
# Optional: set to 1 when BACKUP_ROOT must reside on encrypted storage.
|
|
BACKUP_REQUIRE_ENCRYPTED_STORAGE=0
|
|
BACKUP_HISTORY_FILE="/var/lib/docker-backup/history.jsonl"
|
|
|
|
# Optional retained MQTT status and command listener settings.
|
|
MQTT_REPORT_ENABLED=0
|
|
MQTT_HOST="examplehostname"
|
|
MQTT_PORT=1883
|
|
MQTT_USERNAME="dockerbackup"
|
|
MQTT_PASSWORD_FILE="/etc/docker-backup/mqtt-password"
|
|
MQTT_STATUS_TOPIC="backup-status/dockerbackup/examplehostname"
|
|
MQTT_COMMAND_TOPIC="backup-commands/dockerbackup/examplehostname/run"
|
|
|
|
# Rclone destination becomes <remote>/examplehostname/.
|
|
RCLONE_ENABLED=0
|
|
RCLONE_REMOTE="gdrive:dockerbackups"
|
|
RCLONE_HOST_SUBDIR=1
|
|
RCLONE_EXTRA_ARGS=""
|
|
|
|
# The SMB share must already be mounted by the operating system.
|
|
# Destination becomes <mount>/examplehostname/ when SMB_HOST_SUBDIR=1.
|
|
SMB_ENABLED=0
|
|
SMB_MOUNT="/mnt/dockerbackups"
|
|
SMB_HOST_SUBDIR=1
|
|
SMB_RSYNC_ARGS="-a"
|