Encrypted backups
A ZestSSH backup is one .zest file with your hosts, keys, passwords and the rest of your personal space. It is encrypted with a password you choose. Backups are free, on every plan, and work without signing in.
This page is about the file. For backups made on a schedule, and the places they are copied to, see Local backups.
Make a backup
Section titled “Make a backup”- Open Export:
- On a computer: Settings > Backups and data, under Data, Export, then Export….
- On a phone: More > Account, under Data, Export. Or More > Settings > Backups and data > Export data, then Full backup (.zest).
- Type a Backup password of at least 12 characters, and the same again in Confirm password. A password that does not match says “Passwords don’t match.”
- Choose Export.
The same dialog then says “Backup exported”, how many items went into the file and whether it is encrypted (for example “77 items, encrypted.”), and the file’s name with its folder under it. An icon on the file copies its path; on a computer, Show in folder opens its folder. Done closes it.
With Recording mode on, ZestSSH asks before it writes the file, since a backup holds real keys and passwords.
Where the file goes
Section titled “Where the file goes”| Device | Folder |
|---|---|
| Android | The Download folder. On Android 8 to 10, where the app cannot write there, the app’s own folder |
| iPhone, iPad | The app’s Documents folder, which you see in the Files app |
| Windows, macOS, Linux | ZestSSH/backups in your Documents folder |
Files are named zestssh_backup_ and the date and time, for example zestssh_backup_2026-10-22T14-05-09.zest. Automatic backups are named zestssh_auto_ and the date and time, and on a computer they go to the app’s own support folder instead, not your Documents folder.
A backup without a password
Section titled “A backup without a password”Empty password fields are too short, like any other password. To export without one, choose No password at the bottom left of Export a backup. The same dialog then says, in amber, “Not recommended: the file will hold your SSH keys and passwords in a form anyone who gets it can read.” Export unencrypted stays off until you tick I understand, export without a password; then it writes the file, as plain JSON. Use a password goes back to the password fields.
What a backup holds
Section titled “What a backup holds”A backup holds what sync carries for your personal space:
- your hosts, their groups, tags and other accounts,
- your keys, with their secrets: passwords, private keys, saved passphrases and certificates,
- trusted host keys,
- snippets and their categories,
- port forwarding rules,
- networks and the per-host and per-forward rules for them,
- alerts: the terminal’s trigger and highlight rules,
- command history,
- the settings that sync,
- your account’s keys for teams,
- records of what you deleted, so a restore does not bring deleted items back.
A backup does not hold your teams’ data (each team keeps its own), workspaces, session logs, session transcripts or the automation history.
How the file is encrypted
Section titled “How the file is encrypted”- ZestSSH gathers the data above as JSON and compresses it with zlib.
- It makes a random 32-byte salt and derives a 256-bit key from your password with Argon2id: 128 MiB of memory, 3 passes and 4 lanes.
- It encrypts the compressed data with AES-256-GCM under that key, with a random 12-byte nonce. The 16-byte tag proves on restore that nothing in the file was changed.
The settings Argon2id was run with are written into the file, so a backup still opens after a later version of ZestSSH raises them.
File layout
Section titled “File layout”Every .zest backup starts with the four letters ZEST and a version byte:
| Version | What it is |
|---|---|
3 |
Encrypted, the format written today |
1 |
Encrypted, from older versions, without the Argon2id settings in it. Read only |
2 |
No password: plain JSON. Read only after a warning (see Restore) |
A version 3 file is laid out like this:
| Bytes | What |
|---|---|
| 4 | ZEST |
| 1 | Version, 3 |
| 2 | Length of the settings header, big-endian |
| that length | The Argon2id settings, as JSON (version, memory in KiB, iterations, parallelism) |
| 32 | Salt |
| 12 | AES-GCM nonce |
| 16 | AES-GCM tag |
| the rest | The encrypted, compressed data |
When it reads a file, ZestSSH refuses Argon2id settings weaker than 64 MiB, 3 passes and 4 lanes, or larger than 1 GiB, 32 passes and 16 lanes, so a changed file cannot make your password cheaper to guess or hang the app. A version 1 file is tried with today’s settings and then with the older 64 MiB ones.
Restore a backup
Section titled “Restore a backup”- Open Import:
- On a computer: Settings > Backups and data, under Data, Import, then Import….
- On a phone: More > Account, under Data, Import. Or More > Settings > Backups and data > Import data, then Restore from backup (.zest), or Import a file, which works out that it is a backup.
- Pick the
.zestfile. - Type its Backup password and choose Import…. A wrong password asks again.
- Restore this backup? says what the file would do before anything is written: how many hosts, keys, snippets and other items it holds, and how many items here it would replace. It also lists hosts that do something by themselves: run a command or a snippet when they connect, open a shell on this device, set variables, start a port forward, forward your SSH agent, use Compatibility mode, or are connected to in the background. Where the file would also turn down a safety setting it says “It would also turn down these safety settings. Each stays as it is here unless you tick it.”, with a tick box for each: asking before trusting a new host’s key, warning before commands that can do damage, security alerts, letting hosts write to this device’s clipboard, and asking before a snippet that can do damage runs. Select all is there for your own backup on a new device. Restore only a backup you made, or one from someone you trust.
- Choose Restore. ZestSSH says “Backup restored” and how many records.
A host someone shared with you as a .zest file is recognized as a shared host, not a backup, and offered as one.
What a restore changes
Section titled “What a restore changes”A restore adds the backup to what is on the device, and deletes nothing:
- An item in the backup replaces the same item here, and items that are not here yet are added.
- An item in the backup that was deleted here since comes back, and the next sync does not delete it again.
- Nothing here is deleted: items that are only here stay, and the deletions the backup recorded are not applied.
- Safety settings the backup would turn down stay as they are here, unless you ticked them.
So restoring an old backup can bring back older copies of items, and items you deleted after you made it.
A trusted host key from the backup is taken only when it names the device that trusted it. When this device trusts another key for the same host, it keeps its own. See Host key verification.
A backup with no password
Section titled “A backup with no password”A version 2 file has no password, so nothing proves who made it or that it was not changed, for example to add a command that runs when a host connects. ZestSSH asks Import a backup with no password? and imports it only after you tick I understand, import it.
Limits and errors
Section titled “Limits and errors”| Message | Why |
|---|---|
| “Please select a .zest backup file” | The file picked does not end in .zest |
| “Backup file is too large (max 50 MB)” | Files over 50 MB are refused before they are read |
| “Invalid backup file format” | The file does not start with ZEST and a version |
| “Invalid or corrupted backup header” | The Argon2id settings in the file cannot be read |
| “This backup is password-protected. Please enter the password.” | An encrypted file and no password |
| “Wrong password or corrupted backup” | The password is wrong, or the file was changed |
| “Unsupported backup version” | A version this app does not know |
| “Backup file not found” | The file is gone |
Keep your backups safe
Section titled “Keep your backups safe”- The password is the only thing protecting the file. Use a long one you do not use anywhere else, and keep it in a password manager.
- Nobody can open a backup without its password, ZestSSH included.
- Keep a copy off the device, so a lost or reset device does not take your only backup with it.
Next steps
Section titled “Next steps”- Local backups: automatic backups and where they are copied.
- Data at rest: how your data is kept on the device.
- Sync encryption: the same encryption, for sync.