Skip to content
Help topics
Version 2.20.0
Reviewed

Backup and Restore

On this page

How MailVault archives mail, what archiving then deleting does to the server copy, when automatic backups run, and how to export and re-import your vault.

How does MailVault back up emails?

MailVault connects to your email server over IMAP, Microsoft Graph for personal Outlook.com accounts, or JMAP. To retain mail, explicitly archive the messages you need or run a manual backup with All emails (download from server). In the default Maildir storage format, saved messages are standard .eml files in Maildir folders on your computer, readable by apps that support EML. Optional JMAP storage keeps the original bytes with JSON records and deduplicates identical messages. Before deleting server copies, open the archived messages and attachments, confirm the expected folders and date range are present, and verify a second copy in a separate backup location. A message appearing in the inbox or cache does not prove it has been archived.

MailVault archive progress bar showing bulk email backup in progress · MailVault version 2.16.0 en

What happens when I archive an email?

Archiving downloads the full email from your server (if not already cached) and stores it as a .eml file on disk with the A (Archived) flag in the filename. If the email was already cached locally, MailVault marks the existing local message as archived. Archived emails appear under the Vault view and are included in backups. The server copy is untouched until you delete it yourself.

What happens when I archive and delete from server?

Archive & Delete, a Premium feature, runs three steps in order: it copies the message into your vault as an .eml file, checks that the copy is really there, and only then deletes it from the server. Anything that fails the check stays on the server — a failed copy never costs you the original. Afterwards the row shows your only copy: the vault is the one place that message still exists, which is also the cue to keep a backup drive attached.

Archive, Back up & Delete, also Premium, adds a second copy: it copies each message to your backup folder as well, checks both copies, and removes from the server only what both confirm. It needs a backup folder chosen first. If the drive cannot be reached, or a copy does not match, nothing is deleted for those messages and the result tells you how many stayed on the server.

Two jobs in Settings → Backup & Restore → Archive & delete, both Premium, do the same for a whole account instead of selected messages. Archive, back up & delete from server saves the mail you scope to your vault and your backup folder, and Archive & delete from server saves it to your vault only. You choose the folders and the dates (all dates, this year, last year, older than 2 years, or the years you pick), whether to delete after everything is saved or as each email is saved, and whether to move to Trash or move to Trash and empty it, and a summary shows what will be removed before you confirm. Every copy is checked before an email is removed, the job keeps running in the background and after a restart, and it waits for your daily download limit or for Gmail’s own limits instead of failing.

What happens if I delete emails from the server?

Anything you archived first stays in your vault, untouched by what the server does afterwards — that is the whole point of the product. Anything you did not archive is gone with the server copy, so MailVault shows the state of every message on its own row before you delete: on the server, in your vault, or both. The safe route is Archive & Delete (Premium), which copies each message into your vault and verifies it there before removing it from the server.

MailVault inbox showing per-message state icons for server-only, archived locally, and local-only emails · MailVault version 2.16.0 en

How do I archive and delete selected emails from the server?

Use Bulk Email Operations when you want to clear a hand-picked slice of one account: a year, a date range or a group you selected. Open the Server view, choose Select messages…, pick a year, press Next and choose an action. Both routes below are Premium, and both check every copy before anything leaves the server.

  • Archive & Delete copies each email into your vault, verifies it there, then removes it from the server. Your vault holds the only copy afterwards.
  • Archive, Back up & Delete also copies each email to your backup folder and checks both copies before removing it from the server. It stays greyed out with “Choose a backup folder first” until a backup folder is set in Settings → Backup & Restore → Backup Settings.

Anything that fails the check stays on the server, and the result tells you how many emails were kept. When the run is done the Server count drops by what was removed, and the same emails are listed in the Vault view.

Archive & Delete from the Server view: select a year, confirm, and the Vault keeps the emails.
Archive, Back up & Delete: the same flow with a second copy on your backup drive.

Want every click with a screenshot? See the step-by-step tutorial. To clear a whole account instead of a selection, use the Settings route.

How do I archive and delete a whole account from Settings?

Open Settings → Backup & Restore → Archive & delete. Two Premium jobs work on a whole account at a time: Archive, back up & delete from server (vault and backup folder) and Archive & delete from server (vault only). Press Set up, choose what to remove, read the summary, tick the confirmation and press Start.

Archive & delete from server in Settings: scope, summary, start, and the Vault keeps everything.
Archive, back up & delete from server in Settings, with the backup folder as the second copy.

Why use Settings instead of selecting messages

  • It scopes the whole account. Tick folders (or the whole account) and choose all dates, this year, last year, older than 2 years, or the years you pick. Nothing to select by hand.
  • You see the cost first. The summary lists how many emails and how many megabytes, by folder and by year, how many are already in your vault or on your backup drive, what is left to download and, when you set a daily download limit or use Gmail, about how many days it will take.
  • You choose the risk. Delete after everything is downloaded and checked (safest), or as each email is saved to free space as the job goes.
  • You choose how it leaves the server. Move to Trash, or move to Trash and empty it. Emptying removes only the emails this job moved and leaves the rest of Trash alone.
  • It runs in the background. Keep using MailVault while a progress panel follows the job. You can pause, resume or cancel, the job keeps running after a restart, and it waits for your daily limit or Gmail’s limits instead of failing.
  • Every copy is checked before an email is removed. Emails that fail the check stay on the server, and the panel lists why.

Good to know: emails with several labels are removed from all of them, and emails already in Trash are saved and left in Trash. For a quick clean-up of a few years, the bulk route is faster. For a whole mailbox, Settings is the safer, more controllable way.

Step by step: archive and delete from the server, with screenshots

You need MailVault Premium. For the backup variants, set a backup folder first (Settings → Backup & Restore → Backup Settings). The screenshots use MailVault’s fictional demo mailbox.

Way 1: Bulk Email Operations

  1. Open the Server view of the account.

    MailVault Server view of the demo account before archiving · MailVault version 2.20.0 en
  2. Choose Select messages… in the list toolbar. Bulk Email Operations lists the years in the account.

    Bulk Email Operations dialog listing the years with their email counts · MailVault version 2.20.0 en
  3. Pick a year. MailVault shows how many emails it selects.

    Bulk Email Operations with one year picked and its email count shown · MailVault version 2.20.0 en
  4. Press Next and choose the action: Archive & Delete or Archive, Back up & Delete.

    Choose Action dialog with Archive and Delete highlighted · MailVault version 2.20.0 en
    Choose Action dialog with Archive, Back up and Delete highlighted · MailVault version 2.20.0 en
  5. Press the action button at the bottom of the dialog, then read the confirmation. Anything that fails to copy stays on the server.

    Confirmation asking to archive, then delete from the server · MailVault version 2.20.0 en
  6. Confirm. Progress runs in the corner of the window: downloading, verifying (and backing up), then deleting.

    Progress bubble while emails are archived · MailVault version 2.20.0 en
  7. When it says Operation Complete, the Server count has dropped. Open the Vault view: the emails are still there.

    Operation Complete with the Server count reduced · MailVault version 2.20.0 en
    Vault view listing the archived emails · MailVault version 2.20.0 en

Way 2: Settings → Backup & Restore → Archive & delete

  1. Open Settings and choose Backup & Restore.

    MailVault Settings dialog open · MailVault version 2.20.0 en
  2. Open the Archive & delete tab. Choose the account, then press Set up on Archive, back up & delete from server or on Archive & delete from server.

    Archive and delete tab with both jobs · MailVault version 2.20.0 en
  3. Choose the folders to clear, or the whole account.

    Setup screen listing folders with checkboxes · MailVault version 2.20.0 en
  4. Choose the dates: all dates, this year, last year, older than 2 years, or pick years.

    Dates options with a year ticked · MailVault version 2.20.0 en
  5. Choose when to delete and how: after everything is downloaded or as each email is saved, and move to Trash or move to Trash and empty it.

    When to delete and how to delete options · MailVault version 2.20.0 en
  6. Read the summary: emails and size, by folder and by year, what is already in your vault or on your backup drive, and what is left to download.

    Summary of the job before it starts · MailVault version 2.20.0 en
    Summary of the backup job showing what is already on the backup drive · MailVault version 2.20.0 en
  7. Tick the confirmation and press Start.

    Confirmation ticked and Start ready · MailVault version 2.20.0 en
  8. The job runs in the background. Close Settings and follow the progress panel.

    Archive and delete tab saying a job is running · MailVault version 2.20.0 en
    Progress panel following the job · MailVault version 2.20.0 en
  9. When the panel says Finished, open the Vault view to see the emails, and the Server view to see that they are gone.

    Progress panel saying the job finished · MailVault version 2.20.0 en
    Vault view listing the archived emails · MailVault version 2.20.0 en
    Server view with the emails removed · MailVault version 2.20.0 en

Settings has more control and a summary before you commit, which is why we recommend it for whole accounts. The bulk route is quicker for one year. Compare both in the Settings article.

How does backup and restore work?

MailVault exports your emails as a ZIP archive containing all .eml files plus a manifest.json that maps emails to accounts by email address (not internal IDs), making backups portable across different installations. You can choose to export all emails or archived only. Importing is idempotent — if an email already exists locally, it won't be duplicated. If a backup contains emails for an account you haven't set up yet, MailVault creates it automatically (you just re-enter the password in Settings).

MailVault backup and restore settings with ZIP export, import, and MBOX export for Thunderbird or Apple Mail · MailVault version 2.16.0 en

Can I choose the hours automatic backups run?

Yes, with Premium. Settings → Backup & Restore → Backup Schedule offers four frequencies: every hour, once a day, once a week, and At set hours. Choose At set hours and a grid of all 24 hours appears; tap the ones you want, say 07, 12 and 22, and MailVault backs up on the hour at each of them and never in between. Every frequency runs only while the app is idle, so a backup never starts under your hands.

Set hours are meant for a vault or backup mirror on an external drive that something else already uses on its own schedule, Time Machine most often: pick the hours that drive is free. A selected hour that comes round while MailVault is busy is skipped rather than caught up later, so the next selected hour is the next attempt.

MailVault backup schedule set to At set hours, with 07, 12 and 22 picked in the 24-hour grid · MailVault version 2.16.0 en

Back to all FAQ topics

Still have questions?

See it in MailVault

Back up all accounts and verify completion · MailVault version 2.20.0 en
Back up all accounts and verify completion
Video transcript

Select Back up all accounts in Backup settings. Watch backup progress until the run finishes.

Version 2.20.0
Reviewed