macOS
brew install imap-backuplocal Homebrew formula metadata
brew
Backup GMail (or other IMAP) accounts to disk. Version 16.6.0 via Homebrew; verified 2026-06-06.
install
brew install imap-backuplocal Homebrew formula metadata
overview
Backup GMail (or other IMAP) accounts to disk
history
imap-backup is a Ruby command-line tool for backing up and migrating IMAP email accounts to local disk. It targets Gmail and other IMAP services, storing messages in mboxrd files with companion metadata.
The RubyGems version history shows `imap-backup` beginning with 0.0.1 in 2012 and reaching 1.0.0 in early 2013. The project's developer documentation states design goals of secure local configuration, restartable operation, and independence from a mail client or MTA.
The tool has grown from basic account backup into a broader IMAP maintenance utility. Recent changelog entries document download strategies, Thunderbird export improvements, configuration-free single-account backups, container images, a consolidated `copy` command replacing older migration and mirror flows, account locking, metadata migrations, and internationalization.
imap-backup is distributed as a RubyGem and as a Homebrew formula. RubyGems download counts are much higher than Homebrew installs, which fits a Ruby CLI whose main package channel is the gem ecosystem, while Homebrew gives Mac and Linux users a convenient binary-package entry point.
The package's adoption comes from a durable personal-infrastructure problem: IMAP accounts need local, restartable, scriptable backups without coupling the archive to a desktop mail client. Its docs also cover migration and restore operations, so the tool is used for both preservation and moving mail between providers.
`imap-backup setup` creates configuration, and `imap-backup backup` copies messages for configured accounts to disk. The backup command is incremental and interruptible, and stores email in mboxrd files with IMAP metadata containing offsets and message lengths.
The config documentation records the default path as `~/.imap-backup/config.json` and warns that usernames and passwords are stored in plain text there, with permissions set on Unix-like systems. Other commands include restore, copy, and single-account backup flows, with performance settings for delayed metadata writes and multi-fetch size.
imap-backup is package-nerd significant because it turns email portability into a boring CLI workflow. It also demonstrates the tradeoffs of local-first backup tools: plain JSON configuration, mboxrd serialization, metadata version migrations, locking, and careful restart behavior matter more than a large service backend.
security posture
broad file, network, media, or database tool signal.
blue risk · medium confidence · tool
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
~/.imap-backup/config.jsonCredential-bearing paths to review before unattended agent runs.
~/.imap-backup/config.jsonexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
imap-backup | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/joeyates/imap-backup
install metadata
| Package key | brew:imap-backup |
|---|---|
| Version | 16.6.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/imap-backup |
| Homepage | https://github.com/joeyates/imap-backup |
| Repository | https://github.com/joeyates/imap-backup |
| Upstream docs | https://github.com/joeyates/imap-backup#readme |
| License | MIT |
| Source archive | https://github.com/joeyates/imap-backup/archive/refs/tags/v16.6.0.tar.gz |
| Last updated | 2026-06-06T17:04:39Z |
| Pulse | updated |
| Dependencies | ruby |
| Uses from macOS | libffi |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | imap-backup |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.