Making backups with ZFS snapshots
Optional: Generate a zfs mountpoint dedicated to your Mails:
To create a snapshot (with a date as the seed) you can run:
Of course you need to point your ‘localfolders’ to a subdirectory of the zfs mountpoint you are generating a snapshot of.
Now you can easily wrap your offlineimap command with a failsafe like that:
TODO: Implement as offlineimap hook