IMAP-backup: Backup Gmail (or other IMAP) accounts to disk

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • ImapSync

    Imapsync is an IMAP transfers tool. The purpose of imapsync is to migrate IMAP accounts or to backup IMAP accounts. IMAP is one of the three current standard protocols to access mailboxes, the two others are POP3 and HTTP with webmails, webmails are often tied to an IMAP server. Upstream website is

    You can also find the 'GitHub version' (which I'd guess is where distributions get their versions from) at https://github.com/imapsync/imapsync . I used this for an uncomplicated transfer from one IMAP server to another; it felt pretty slow but with the right CLI flags it is interruptible/restartable, and I didn't end up with lost or duplicate mail.

    It comes with the author's custom "no limits" licence (looks a lot like the WTFPL), so it probably qualifies as free & open source, but you don't get a support contract of course.

    The author's site also has a "give me your IMAP credentials and I'll migrate your mailbox for you, free up to a size limit" service, https://imapsync.lamiral.info/X/ , which boggles the mind. On principle I couldn't trust it.

  • postsack

    Visually cluster your emails by sender, domain, and more to identify waste

    If you do such a gmail backup, I wrote a cross platform Desktop app that can analyze these email backups to provide a visual clustering of the contents of your mails.

    https://github.com/terhechte/postsack

    It parses 500k mails in < 1 Minute, so it is quite fast. There's a web / wasm build of the UI here:

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

  • imap-backup

    Backup and Migrate IMAP Email Accounts

  • imapfw

    Discontinued imapfw (IMAP/mail framework)

    Backing up my gmail has been on my list for a while (as step 1 of a migration away from gmail). Does anyone haver any experience with this tool, and could compare it to offline-imap (https://github.com/OfflineIMAP/imapfw) or mbsync? For something important like email, I'd probably rather use something only with more battle testing. I guess beyond a backup I would hope to use the offline copy to migrate to a new provider.

  • imapbackup

    A Python script for incremental backups of IMAP mailboxes

  • lieer

    Fast email-fetching and sending and two-way tag synchronization between notmuch and GMail

    For gmail backup, I use https://github.com/gauteh/lieer which stores the result in a maildir with labels synchronised with notmuch.

    It uses Google's API to fetch and send e-mails, and is quite performant.

  • offlineimap

    Read/sync your IMAP mailboxes (python2) [LEGACY: move to offlineimap3]

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

  • imap_backup

    Multi-account IMAP backup with multiprocessing.

  • got-your-back

    Discontinued Got Your Back (GYB) is a command line tool for backing up your Gmail messages to your computer using Gmail's API over HTTPS. [Moved to: https://github.com/GAM-team/got-your-back] (by jay0lee)

    I suggest using https://github.com/jay0lee/got-your-back for gmail.

    It works better because it can copy rules, labels, stars, etc.

  • docker-imap-devel

    Dockerized SMTP/IMAP server for development

    Did you do anything particular config-wise for accessing your local instance of dovecot? I tried with [0] but the connection times out when trying to connect via Thunderbird…

    [0]: https://github.com/antespi/docker-imap-devel

  • imapdown

    I recently needed something like that, but didn't want to deal with perl or ruby, so I wrote

    https://github.com/kardianos/imapdown

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts