I admit, it never occurred to me but now that someone has created a tool, I think it ay not be a bad idea! Maybe not ALL of my email but maybe my subscriptions and purchases and license keys?
Check out https://github.com/joeyates/imap-backup for details and installation.