I’m currently working on migrating my emails to a self-hosted mailcow instance running in the Hetzner Cloud. I tried to use Ansible as much as I can, which works really good (https://github.com/felixoi/mailcow-hetzner-ansible/). Now I wanted to test backup/restore before I start the production migration and got some problems with it. I’m using Borgmatic as described in the docs. Backups are working good and running one an hour but when I restore I’m getting duplicated and unread messages in the testing account.
Starting from these mails in the Inbox:
Restoring a backup from earlier this day:
Removed readonly for the mounted borgmatic volumes.
docker-compose exec borgmatic-mailcow borgmatic restore --archive mailcow-2022-12-22T12:14:08.710457
docker-compose exec borgmatic-mailcow borgmatic extract --path mnt/source --archive mailcow-2022-12-22T09:32:48.442065
docker-compose down && docker-compose up -d
Results in something like this:
As you can see some emails are duplicated with a read and a new unread version.
This is not what I expected. Someone has an idea what’s going on maybe?