I'm using lieer and mujmap to sync my Gmail and Fastmail accounts to a local notmuch mail storage on top of ZFS pool. That ZFS pool is in turn replicated off site.
I use neomutt to access my archive over SSH. And notmuch is very fast at searching all of my emails.
* https://github.com/gauteh/lieer