I installed borgmatic and had to play with the syntax a bit to get it to talk to my Synology NAS.
In doing so, it created a repository in the local filesystem that matches the my ssh location for my Synology.
I wanted it to ssh using mailcow@<IP ADDRESS>, but it created a repository in the local file system named
/mailcow@<IP ADDRESS> instead. I did not realize it did this at first and continued to make changes and successfully have it writing to the remote repository on my Synology NAS.
However it is still also writing to the local file system. I was able to get on the container sh and delete that repository. However, now I am getting errors that that repositorydoes not exist when doing regular backups.
if I issue sudo docker compose exec borgmatic-mailcow borgmatic list
I get the following:
rsync: Listing archives
mailcow-2025-03-14T20:28:33.525655 Fri, 2025-03-14 20:28:35 [050afcef1c77be8625d06a0f44edb8d7ba7502c079821afd4787dbc3da2091ba]
mailcow-2025-03-14T21:14:21.475481 Fri, 2025-03-14 21:14:23 [58f14d7f444fe8c458c4cd17a711203dfac8fff745bdac0b2df2f89833e8754d]
mailcow-2025-03-14T22:14:21.849672 Fri, 2025-03-14 22:14:23 [17b9c4117266003b1bd416f7d7801cedba0bce867c924269e86bd9e031309234]
mailcow-2025-03-15T00:04:22.413533 Sat, 2025-03-15 00:04:24 [2be02b108dab56b44b2fb589f73c91c9bfd61f03fd7652022c5e1bcc387a63dc]
mailcow-2025-03-15T06:04:20.922583 Sat, 2025-03-15 06:04:23 [cb4c3aa0ef9786e0ba605d88217d33a238660362d31e658a74a273bbd7c7e8a5]
rsync: Listing archives
Repository /mailcow@<REDACTED> does not exist.
rsync: Error running actions for repository
Not sure why it is still trying to use/find the local file system repository?
This is my config.yaml in data/conf/borgmatic/etc
source_directories:
- /mnt/source/vmail
- /mnt/source/crypt
- /mnt/source/redis
- /mnt/source/rspamd
- /mnt/source/postfix
repositories:
- path: ssh://mailcow@<REDACTED>/./mailcowbackup
label: rsync
remote_path: /usr/local/bin/borg
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: 2
mariadb_databases:
- name: mailcow
username: mailcow
password: REDACTED
options: “–default-character-set=utf8mb4 –skip-ssl”
list_options: “–skip-ssl”
restore_options: “–skip-ssl”
Not sure if I should destroy the borgmatic container and start over or if there is a simpler way to resolve this?
Any suggestions are appreciated.