4 ms·
> ... server-based solution that connects to my IMAP-based email provider, and saves backup snapshots to cloud-based storage (e.g. Backblaze, S3, etc.) using de
by jlgaddis 7y ago
> ... server-based solution that connects to my IMAP-based email provider, and saves backup snapshots to cloud-based storage (e.g. Backblaze, S3, etc.) using de-duplication to save space.
You could rather quickly and easily write a shell script to:
- use offlineimap [0] or imapsync [1] to perform a local sync of your mailbox to local mbox files or maildir directories,
- (optionally) use tar or similar to create a single file out of your entire mailbox, and
- use tarsnap [1] to back it up (to AWS) or s3cmd [2] or similar to back it up to wherever you want it.
I used to do exactly that with an additional step to encrypt the tarball (with GPG) before uploading it. It worked out quite well.
---
[0]: http://www.offlineimap.org http://www.offlineimap.org
[1]: https://imapsync.lamiral.info https://imapsync.lamiral.info
[2]: https://www.tarsnap.com https://www.tarsnap.com
[3]: https://s3tools.org/s3cmd https://s3tools.org/s3cmd
- cperciva 7y agoNote that if you're using tarsnap there's no need to create a tarball from your mailbox (tarsnap does that for you) and there's no point encrypting your data with GPG (tarsnap encrypts your data for you too). If you're using s3cmd to back up your mail then the "create a tarball" and "encrypt with GPG" steps are useful, of course.