Repository navigation
Workflows
Javier Callico edited this page Aug 27, 2026
·
1 revision
For an important account:
- Count the source.
- Make a local backup or perform a non-destructive migration.
- Compare source and destination.
- Investigate unexpected differences.
- Only then consider source or destination deletion.
imap-count --target source
imap-migrate --no-src-delete --no-dest-delete
imap-compareimap-count --target source
imap-count --target destination
imap-count --target localimap-backup --dest-path ./mail-backup
imap-compare --dest-path ./mail-backupBackups store messages as .eml files. Preserve flags and Gmail labels when required:
imap-backup --preserve-flags --preserve-labelsCopy without deleting from either side:
imap-migrate --no-src-delete --no-dest-deleteMigrate one folder:
imap-migrate "Archive/2025"Enable incremental migration caching:
imap-migrate --migrate-cache ./migration-cacheUse --full-migrate to ignore cached skip decisions while continuing to update an enabled cache.
imap-restore --src-path ./mail-backupApply a saved labels/flags manifest when restoring Gmail-oriented backups:
imap-restore --apply-labels --apply-flags--src-delete moves instead of copying after successful transfer. --dest-delete removes destination-only messages
or files. Use these options only after comparing and validating the result.
See Configuration for precedence and Troubleshooting when results differ.