I'm slightly confused about how I'm supposed to init the borg repo. Do I do it from within the borgmatic container, or do I do it in UnRaid through the Nerdpack tools?
I'm trying to do a manual backup from within the container after initing the repo in UnRaid itself, but I'm getting the following errors:
My config is as follows:
location:
source_directories:
- /boot
- /mnt/user/appdata
- /mnt/user/Backup
- /mnt/user/NextCloud
- /mnt/user/Files
repositories:
- /mnt/borg-repository
one_file_system: true
files_cache: mtime,size
patterns:
- '- [Tt]rash'
- '- [Cc]ache'
exclude_patterns:
- /mnt/user/Files/Games
exclude_if_present:
- .nobackup
- .NOBACKUP
storage:
encryption_passphrase: "***"
compression: zstd
ssh_command: ssh -i /root/.ssh/id_rsa
archive_name_format: 'backup-{now}'
retention:
keep_hourly: 2
keep_daily: 7
keep_weekly: 4
keep_monthly: 12
keep_yearly: 10
prefix: 'backup-'
consistency:
checks:
- repository
- archives
prefix: 'backup-'
hooks:
before_backup:
- echo "Starting a backup."
after_backup:
- echo "Finished a backup."
on_error:
- echo "Error during prune/create/check."