Commit Graph

12 Commits

Author SHA1 Message Date
BeauTroll
615192ceda Auto-load .env in Makefile for all borgmatic commands
- All make commands now automatically source /etc/borgmatic/.env before running
- Use 'set -a && source && set +a' pattern to export all variables
- Fixes "Cannot find variable BORG_REPO" errors when running make commands
- Applies to: test-config, dry-run, backup, list, info, check, prune, compact
- No need to manually load environment variables anymore

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-16 06:11:38 +01:00
BeauTroll
2b087414ba Fix environment variable interpolation syntax
- Change {BORG_REPO} to ${BORG_REPO} for correct Borgmatic interpolation
- The $ prefix is required for environment variable substitution
- Fixes "Invalid placeholder" error when running borgmatic

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-16 06:07:18 +01:00
BeauTroll
9164e0273e Fix commands syntax for Borgmatic 2.0
- Use correct 'before: action' and 'after: action' syntax instead of 'name' and 'when: [before_backup]'
- Simplify hook structure: before/after action for create, after error for failures
- Remove invalid schema fields that caused validation errors
- Commands now validate without errors

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-16 06:04:00 +01:00
BeauTroll
df7dfe72a2 Migrate to Borgmatic 2.0 syntax without deprecations
- Replace deprecated 'prefix' with 'match_archives: sh:backup-*'
- Replace deprecated hooks (before_actions, after_backup, on_error) with new 'commands' syntax
- Use structured command format with name, when, and run fields
- Removes all deprecation warnings from borgmatic config validate

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-16 05:57:14 +01:00
BeauTroll
b215d8c325 add config validation support 2025-12-16 05:54:49 +01:00
BeauTroll
66e4cd166f update for borgmatic 2.0 2025-12-16 05:50:03 +01:00
BeauTroll
92d9b530f3 fix config format 2025-12-16 05:32:48 +01:00
BeauTroll
4631a8208b add repositories from env 2025-12-16 05:29:38 +01:00
BeauTroll
709ad61557 fix deprecated config format 2025-12-16 05:28:09 +01:00
BeauTroll
fc8c413599 fix deprecated config validation 2025-12-16 05:17:57 +01:00
BeauTroll
58e101bd6d fix terminal colorng 2025-12-16 04:57:52 +01:00
BeauTroll
2b048a09e1 initial commit 2025-12-16 04:41:26 +01:00