# Borgmatic Configuration File # This file defines HOW the backup is executed, including paths, retention, and encryption. location: # Directories INSIDE the Borgmatic container to be backed up. # The host paths are mounted to these locations. source_directories: # 1. Immich Assets (Photos/Videos) - /mnt/source/immich/upload # 2. Database Dump File (compressed dump moved to /backups) - /mnt/source/immich/backups/immich-database.sql.gz # Path INSIDE the Borgmatic container where the Borg repository is mounted. repositories: - /mnt/borg-repository # --- Storage Settings --- storage: # The encryption passphrase for your Borg repository. encryption_passphrase: "" # --- Retention Settings (Pruning) --- retention: # Keep all archives made in the last 3 days. keep_daily: 3 # Keep one archive per week for the last 2 weeks. keep_weekly: 2 # Keep one archive per month for the last 2 months. keep_monthly: 2 # Keep one archive per year forever (-1). keep_yearly: -1 monitoring: apprise: recipients: - 'mailto://harry@finefam.ca?to=harry@hiddden.ca&host=mailout.easymail.ca&port=465&user=harry@hidden.ca&password=hidden&tls=True' states: - finish # for success - fail # for failure # --- Consistency Checks --- consistency: checks: - repository # --- Exclusion Settings --- exclude_patterns: - '*.tmp' - '*.log' - 'Cache/' - 'cache/' - 'redis/' - '*.bak' - '*.old'