sudo dnf install borgmatic

vi /etc/borgmatic/config.yaml

1. SOURCES & REPOSITORIES

source_directories: - /

repositories: - path: /mnt/backup/behelit label: local

2. EXCLUDES

one_file_system: true exclude_patterns: - /proc - /sys - /dev - /run - /tmp - /mnt - /media - /var/tmp - /var/cache - /var/lib/docker/overlay2 - /home/*/.cache

3. STORAGE SETTINGS

encryption_passphrase: “YourSecretPassphraseHere” compression: zstd,3

4. RETENTION

keep_daily: 7 keep_weekly: 4 keep_monthly: 6

5. CONSISTENCY CHECKS

Fixed: The schema prefers a list of strings or a simpler object

checks: - name: repository - name: archives