mail-in-a-box / mailinabox

Mail-in-a-Box helps individuals take back control of their email by defining a one-click, easy-to-deploy SMTP+everything else server: a mail server in a box.
https://mailinabox.email/
Creative Commons Zero v1.0 Universal
13.75k stars 1.43k forks source link

Feature proposal: switching to restic for backups? #1977

Open duxovni opened 3 years ago

duxovni commented 3 years ago

I'm curious whether people would be open to switching MIAB's backup utility from duplicity to restic. Advantages I see are:

It supports all the same backends MIAB currently accepts, so it shouldn't necessitate any big changes aside from deleting the old duplicity backups at some point. The main disadvantage is that it doesn't support compression; it tries to perform deduplication in a way that makes watermarking attacks more difficult, and compression would require even more careful thought to mitigate such attacks. So viewed naively, restic backups would take up more space than duplicity backups, although once there are multiple full duplicity backups present, the story may be different.

The long downtime during full backups is my biggest pain point with MIAB, and I think this would improve things substantially. Thoughts?

nomandera commented 3 years ago

I hear a lot of buzz about restic and probably more importantly people putting the effort into moving to it.

In the context of mailinabox though. Does it need to maintain a local copy of the backup? This would regression for some but a show stopper for many. For example I have a VPS which is plenty large enough for my needs but would not have enough space to support a second uncompressed copy of mailboxes.

duxovni commented 3 years ago

AIUI it doesn't need a second local copy of anything, it just looks at the source files directly. Although having a backup destination on the local disk, and then copying that backup repository elsewhere separately, is also a supported option if desired.