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 and the emails in Local Folders. Not included are mails currently waiting in the outbox to be sent.
- Open Settings → Import / Export.
- In the Full backup section, click Export full backup.
- Choose where to save.
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 cannot be read in a text editor; it is meant for
YouniqMail.
Restoring a backup
Section titled “Restoring a backup”- Close all other YouniqMail windows and open Settings → Import / Export.
- In the Full backup section, click Import full backup.
- Select the backup file.
Once everything is restored, YouniqMail restarts on its own. Before that, it automatically makes a copy of the existing database. If the restore fails, the database, Local Folders, settings and credentials return to their previous state.
If the backup comes from another computer, YouniqMail asks for that computer’s recovery key, because the database in the backup is encrypted with the old computer’s key. 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.
YouniqMail never carries over the sign-ins to connected services when restoring, not even on the same computer. After the restart you connect Trello, Todoist, Asana, Jira, Notion, Teams and Zoom again under Settings → Integrations. For CalDAV accounts you enter the password again, for webhooks the URL and your own headers. All other settings of the services are kept, and after the restore YouniqMail tells you which services are affected.
A backup from YouniqMail 0.9.5 or newer also holds the Local Folders. Only restore it with 0.9.5 or a newer version; older versions do not know the format. Older backups still restore in every version.
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 and the master password hint, 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.
- Install and launch YouniqMail on the new one.
- Complete the setup wizard.
- Restore the backup 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.
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 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), a file copy is useless on a foreign device. The key is sealed with the help of your operating system and can only be opened there.
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.
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.