Skip to content
Back to Home

Email backup guides ·

How to Back Up Email on Linux as EML

A Linux email backup should survive both a provider deletion and a failed disk. Start by archiving messages into an independent local vault, then keep a second copy elsewhere. MailVault’s Linux app stores archived mail as individual EML files in Maildir folders.

1. Install the Linux app and connect an account

Use the Linux download links on the download page and choose the package and architecture that match your system. Follow the current installer guidance there rather than copying commands for another distribution. Add Gmail or Microsoft accounts with the supported sign-in flow, or enter the connection details supplied by your IMAP provider. An organization can restrict access regardless of operating system.

2. Make an archive before making a backup

  1. Check Inbox, Sent and custom folders against your webmail. Include older folders and labels that you want to keep.
  2. In bulk operations, pick the folders and date range, then choose Archive. This creates the local copies without removing mail from the server.
  3. Leave the app running until the job completes. Review failures and retry missing messages before treating the archive as complete.
  4. Choose the Vault source and inspect messages from several years, including attachments.

Verify the archive before relying on it

  1. Switch the message source to Vault, rather than Server or All. Search for an old message you recognize.
  2. Disconnect from the network and open a few archived messages from different folders and years. Open their attachments too. A subject line in a list is not proof that the message body is saved.
  3. In Settings, open Backup & Restore and use Export Backup. Choose a location on a second drive. The ZIP contains the vault, accounts and settings; it excludes messages that only exist on the server.
  4. Check that the ZIP opens, contains .eml files, and includes the folders you intended to preserve. For important mail, test restoring a copy in a separate installation before deleting anything.

3. Protect the disk copy

Use a second drive for the exported backup. A second folder on the same disk does not protect against that disk failing. If the drive is removable, check that it is mounted and writable before a scheduled run. Store private mail on encrypted storage and keep backup recovery credentials somewhere you can reach after losing the computer.

Maildir makes individual messages portable, but the active vault also has app metadata. Prefer the app’s backup/export workflow for a running installation. If you copy the entire vault at the filesystem level, close the app first so you do not capture files halfway through a write.

Can I automate it?

MailVault Premium supports scheduled backups. Start with a successful manual archive and a verified restore before enabling a schedule. If you prefer a terminal workflow, compare tools by their authentication support, storage format, deletion behavior and restore process in our IMAP backup checklist.

Also see choosing a Linux email archive and keeping mail after server deletion. The accompanying Mac recordings elsewhere in these guides demonstrate the shared app workflow, not a Linux desktop session.

Download MailVault for free to make your first local archive. Manual archiving is free; automated archiving, scheduled backups and Archive & Delete require Premium.

More practical guides: How to Back Up Gmail to EML Files · How to Export Outlook Email to EML · How to Download All Your Emails on Mac · A Local Email Archive for Linux: What to Check