Backup and moving
Your emails live on the mail server and are safe there. Everything else (notes, rules, contacts, follow-ups) exists only on your device. Without a backup, a defect means it is gone.
Full backup
Section titled “Full backup”The easiest path is the built-in backup. It contains the entire database with emails, contacts, tags, notes, rules, smart folders, signatures, templates and keys, plus the settings, the credentials, the emails in Local Folders, the photos of your contacts, the attachments of your drafts and the emails in the outbox with their attachments.
Your private PGP keys and S/MIME certificates are bound in the backup to the device that stored them. On the same device they work after a restore as before. For a move to another device, also export them as files beforehand (see Moving to a new machine).
YouniqMail does not send the emails from the outbox on its own after a restore. They wait there until you release them with Retry sending. That way nothing goes out a second time that was already sent after the backup was made.
The same goes for actions that were still waiting for the server when the backup was made, such as marking as read, flags, tags or moves. They stay in the outbox under Pending Actions until you release them with Retry action or discard them. Until then the emails concerned show their state from the backup. If you discard an action, the email takes on the server’s state again at the next sync.
Changes for your CalDAV calendar that were still waiting for the server, such as answers to invitations, are held too. They do not go out on their own when you enter the CalDAV password again either, as you may have answered differently since. Under Settings → Integrations → CalDAV Calendar you send them with Try again now or discard them. Integrations are a Pro feature: without Pro, held changes do not go out.
Emails you snoozed after the backup stay in the “Snoozed” folder, but the restored database does not know their time. They appear under All Snoozed, and opened they show the notice Snoozed without a wake-up time (see Snooze). If a snoozed email from the backup has come back since, YouniqMail does not bring it back again or mark it unread once more.
- Open Settings → Import / Export.
- In the Full backup section, click Export full backup.
- Choose where to save. YouniqMail suggests your Downloads folder.
YouniqMail does not make backups on its own; you start each one
yourself. The file is named youniqmail-full-backup-<timestamp>.json
and is roughly as large as your database and your Local Folders
combined. With a lot of mail, that is easily several gigabytes. Despite
the .json extension, it is meant for YouniqMail, not for a text
editor.
Restoring a backup
Section titled “Restoring a backup”On a freshly installed YouniqMail you can do this right in the setup wizard: its first page offers Restore from a backup. Otherwise, proceed like this:
- Close all other YouniqMail windows and open Settings → Import / Export.
- In the Full backup section, click Import full backup.
- Select the backup file.
- YouniqMail shows you when the backup was made and asks whether to replace your data. Back up current data first saves a backup of the current state first and then asks you again. Only Replace and restart restores the backup.
YouniqMail prepares the backup, then restarts on its own and plays it in at startup, before it opens the database. That way nothing keeps working with the old data while the backup goes in. It keeps the existing database until the new one has opened. If the restore fails, the database, Local Folders, settings and credentials return to their previous state, and YouniqMail tells you so after the start. If a compose window is still open when you import, YouniqMail stops before it changes anything, as the window’s content would be lost in the restart. Close it and start the import again.
The license, the master password and auto-lock are not restored: they stay as they are on this device.
If the backup comes from another computer and its database is encrypted, YouniqMail asks for that computer’s recovery key, because the database in the backup is encrypted with the old computer’s key. Another user account on the same computer counts as another computer here. The credentials of your accounts cannot be carried from one computer to another: after the restore, YouniqMail tells you that you need to enter the passwords again. Under Settings → Email Accounts these accounts are marked “Sign-in missing”. For IMAP and Gmail accounts, enter the password again with Enter password, for Gmail an app password. Microsoft accounts are signed in again with Sign in again. The accounts keep their emails, folders and settings.
The same goes for your private PGP keys and S/MIME certificates: they
are bound to the computer that stored them. After the restore,
YouniqMail tells you how many are affected and marks them “Not readable
on this device” under Settings → Security → PGP Encryption and
Settings → Security → S/MIME. Import the key file or the certificate
file (the .p12, or the .pem exported from YouniqMail) there again.
The entry keeps its account and its settings, and emails encrypted for
the key can be opened again. Importing such a certificate again works
without Pro; a certificate that is not in the list on the new device yet
counts as a new import, and that is Pro.
YouniqMail never carries over the sign-ins to connected services when restoring, not even on the same computer. After the restart you connect Trello, Asana, Notion, Teams and Zoom again under Settings → Integrations. For CalDAV accounts you enter the password again, for webhooks the URL and the HMAC secret. All other settings of the services are kept, and after the restore YouniqMail tells you which services are affected. Integrations are a Pro feature.
Only restore a backup with the version it comes from or a newer one; older versions do not know the format. Older backups still restore in every version. Backups from versions before 0.9.5 contain no Local Folders, those from before 0.9.6 no attachments of drafts and the outbox and no contact photos.
Transferring settings only
Section titled “Transferring settings only”To carry your settings to a second device without hauling the mail along, there is a leaner path.
On the same page you find Export settings with Export now. The resulting JSON file contains only your application settings, no emails, no contacts and no credentials. Accounts therefore need to be set up anew on the target device. The file is read in under Import settings with Import from file.
Moving to a new machine
Section titled “Moving to a new machine”The comfortable way:
- Create a full backup on the old device and keep the old device’s recovery key at hand.
- If you use PGP or S/MIME: also export the private keys and
certificates as files on the old device, under Settings →
Security: PGP keys with Save private key, S/MIME certificates
with Export PEM + key (the file is not encrypted), or keep the
original
.p12from your certificate authority. - Install and launch YouniqMail on the new one.
- On the first page of the setup wizard, choose Restore from a backup, select the backup file, confirm with Restore and restart and enter the old device’s recovery key when YouniqMail asks for it.
- After the restart, sign the marked accounts in again under Settings → Email Accounts: enter the password or app password again for IMAP and Gmail accounts, and choose Sign in again for Microsoft accounts.
- Import the exported keys and certificates again: PGP keys under Settings → Security → PGP Encryption, S/MIME certificates with Import .p12 / .pfx / .pem under Settings → Security → S/MIME, tab My certificates.
- If you have Pro: activate the license on the new device under Settings → Pro / License.
The backup brings its encryption along: if the database was encrypted on the old device, it is encrypted on the new one too, with the same recovery key.
The Pro license does not move along with the backup. A license is valid on two devices; free the old device’s slot with Deactivate this device or in the customer portal (see Managing devices). The master password and auto-lock do not come along either; set them up again on the new device if you want them.
The lean way, if a fresh start suits you anyway:
- Export the settings.
- Install on the new device, import the settings.
- Set up the accounts again. The emails load from the server.
The lean way leaves notes, rules, contacts, signatures, templates, smart folders, keys and Local Folders behind. Tags and flags come back because they live on the server, but the tag colors do not.
Where the data lives
Section titled “Where the data lives”If you prefer backing up yourself, say with your usual backup tool:
~/Library/Application Support/YouniqMail/%APPDATA%\YouniqMail\~/.config/YouniqMail/The recovery key
Section titled “The recovery key”If your database is encrypted (which is the default), the key that opens it is sealed with the help of your operating system and can only be opened there. A copy of the data folder on another computer, or under another user account, therefore does not open by itself.
For exactly this case there is the recovery key. You saw it during first-run setup. YouniqMail asks for it when you restore a full backup from another device. When you start a file copy there, YouniqMail shows Database Key Missing; with Enter Key… and the recovery key the database opens again. The credentials of your accounts, the connections to integrations and your private keys stay behind, as after restoring a backup: sign in again and import the key files again.
You can display it again under Settings → Security → Encrypt Storage. It can also be saved as a PDF there. On a Mac with Touch ID, you confirm that with your fingerprint.
How often to back up?
Section titled “How often to back up?”That depends on how much local work lives in your mailbox. If you barely use notes and rules, a backup before major changes is enough. If you work heavily with follow-ups, notes and automations, a monthly backup is a good rhythm.
Remember: the emails themselves can be fetched from the server at any time. The backup is about everything else.