Firstly, thankyou to Josh and the other contributors for building and maintaining mailinabox.
Has anyone set up any sort of higher frequency backup for mailinabox? I understand that the default daily backup is a reasonable tradeoff for keeping things simple, but the possibility for losing a day of mail seems like a long period.
I’m looking for:
- consistent backup
- small window of mail loss is ok (minutes…? an hour?)
- NOT high availability, some downtime to switch to a backup VM is ok
- relatively simple tweak, so not clustered filesystems or similar
- could be unrelated to the builtin daily duplicity backup
I use lsyncd (inotify+rsync) for keeping files sync’d, but I don’t know enough about the workings of the mailserver to think this would provide a consistent backup. Would I need to pause the postfix and other services and schedule rsync instead?
Alternatively I could do something with the VM itself - I use kvm/qemu so regular live backups or snapshots could be an option.
If anyone has done something similar I would be interested to hear what works/does not work well.
Many thanks