When trying to initialize the repository using command docker-compose exec borgmatic-mailcow borgmatic init –encryption repokey-blake2, I receive an error shown below.
`Repository /media/backup/mailcow does not exist.
The parent path of the repo directory [/media/backup/mailcow] does not exist.
local: Error running actions for repository
Command ‘borg init –encryption repokey-blake2 /media/backup/mailcow’ returned non-zero exit status 2.
/etc/borgmatic.d/config.yaml: An error occurred
summary:
/etc/borgmatic.d/config.yaml: An error occurred
local: Error running actions for repository
Command ‘borg init –encryption repokey-blake2 /media/backup/mailcow’ returned non-zero exit status 2.
Need some help? https://torsion.org/borgmatic/#issues
`
I validated the config file which outputed “files are valid”.
In the config.yaml file I entered the repository path shown below. The directories do exist.
What am I missing. Any help would be much appreciated.
`source_directories:
- /mnt/source
repositories:
- path: /media/backup/mailcow
label: local
exclude_patterns:
- ‘/mnt/source/postfix/public/’
- ‘/mnt/source/postfix/private/’
- ‘/mnt/source/rspamd/rspamd.sock’
keep_hourly: 24
keep_daily: 7
keep_weekly: 4
keep_monthly: 6
mysql_databases:
- name: mailcow
username: mailcow
password: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
options: –default-character-set=utf8mb4`
Thanks