Skip to content

feat: per-project backup paths#97

Closed
Philip-Larsen-Donnelly wants to merge 1 commit into
mult-inst-tweaksfrom
mult-inst-backup
Closed

feat: per-project backup paths#97
Philip-Larsen-Donnelly wants to merge 1 commit into
mult-inst-tweaksfrom
mult-inst-backup

Conversation

@Philip-Larsen-Donnelly
Copy link
Copy Markdown
Contributor

Scopes backup and restore paths to a per-instance subdirectory to support multiple instances on the same host.

  • Adds BACKUP_DIR ?= ./backups/$(PROJECT_NAME) to the Makefile, replacing the shared ./backups default. Can be overridden by passing a custom BACKUP_DIR on the command line (e.g. BACKUP_DIR=/mnt/nas/backups/prod PROJECT_NAME=prod make backup)
  • Passes BACKUP_DIR into the docker compose environment via BACKUP_COMPOSE_CMD so the compose file can interpolate it
  • Updates all four volume mounts in stacks/backup/docker-compose.yml from the hardcoded ./backups to ${BACKUP_DIR}

Backups for an instance named prod will now land in ./backups/prod/, by default, instead of ./backups/.

@Philip-Larsen-Donnelly Philip-Larsen-Donnelly changed the base branch from feat/multiple-instances to mult-inst-tweaks April 30, 2026 07:28
@Philip-Larsen-Donnelly
Copy link
Copy Markdown
Contributor Author

Replace with a new PR from the correct base.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant