Hello,
I followed the tutorial on setting up borgmatic found in the 3rd party apps section in mailcow documentation.
I created the docker-compose.override.yml file in the root folder of mailcow-dockerized.
Then I created the config.yaml file in data/config/borgmatic/etc/ found below but when running
docker-compose exec borgmatic-mailcow borgmatic init –encryption repokey-blake2 I receive error below.
How can I resolve this issue. Any help would be much appreciated.
Thanks
`source mailcow.conf
cat <<EOF > data/conf/borgmatic/etc/config.yaml
source_directories:
- /mnt/source
repositories:
- path: /media/backup
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: ${DBNAME}
username: ${DBUSER}
password: ${DBPASS}
options: –default-character-set=utf8mb4
EOF
/etc/borgmatic/config.yaml /etc/borgmatic.d /root/.config/borgmatic/config.yaml /root/.config/borgmatic.d: No valid configuration files found
summary:
/etc/borgmatic.d/config.yaml: Error parsing configuration file
An error occurred while parsing a configuration file at /etc/borgmatic.d/config.yaml:
did not find expected <document start>
in “<unicode string>”, line 23, column 1
/etc/borgmatic/config.yaml /etc/borgmatic.d /root/.config/borgmatic/config.yaml /root/.config/borgmatic.d: No valid configuration files found
Need some help? https://torsion.org/borgmatic/#issues
`