Skip to content

Local backups

A backup is an encrypted .zest file with everything in your personal space: hosts, keys with their passwords and private keys, snippets, groups, networks, port forwards, known host keys, tags, alerts (the terminal triggers), command history and the settings that sync. You make it on your device and restore it yourself. No account or server is needed, and backups are free on every plan.

Backups are not sync. A backup is a snapshot you restore by hand. To keep your devices the same all the time, use sync (free with storage you run yourself; see Cloud sync). Sync does not read or write .zest files.

  1. Open Export:
    • On a computer: Settings, Backups and data, then Export… on the Export row under Data.
    • On a phone: More, Account, then Export… under Data. Or Settings, Backups and data, Export data, then Full backup (.zest).
  2. Type a Backup password, at least 12 characters, and type it again in Confirm password.
  3. Choose Export.

The same dialog then says Backup exported, how many items it saved and whether it is encrypted, and the file’s name with its folder under it, with Copy path on the file (and Show in folder on a computer).

To export without a password, choose No password at the bottom left; empty password fields are too short. Export unencrypted stays off until you tick I understand, export without a password. Such a file holds your keys and passwords in a form anyone who gets it can read. Use a password.

The backup is encrypted with AES-256-GCM under a key made from your password with Argon2id, with the same settings as sync (128 MiB of memory, 3 passes, 4 lanes). The settings are stored in the file, so a later version of ZestSSH can still open it. See Encrypted backups.

  1. Open Import:
    • On a computer: Settings, Backups and data, then Import… on the Import row under Data.
    • On a phone: More, Account, then Import… under Data. Or Settings, Backups and data, Import data, then Restore from backup (.zest), or Import a file, which works out that it is a backup.
  2. Pick the .zest file.
  3. Type its Backup password. A wrong password asks again.
  4. ZestSSH shows Restore this backup? before anything is written: what the backup holds (hosts, keys, snippets, other items), how many items here it would replace, and the hosts in it that do something by themselves (run a command or a snippet when they connect, forward your SSH agent, or are connected to in the background).
  5. Choose Restore, or Cancel to write nothing.

A restore writes each item in the backup over the same item here and adds the ones that are new. It deletes nothing here: items that are only on this device stay, and the deletes recorded in the backup are not applied. An item in the backup that was deleted here since comes back, and the next sync does not delete it again. So restoring an older backup can bring back older copies of items you changed since, and items you deleted since.

A host someone shared with you is also a .zest file. If you pick one, ZestSSH offers to import the host instead.

A backup made without a password asks Import a backup with no password? first, because anyone could have changed it.

Files larger than 50 MB are refused.

Restoring your phone’s backup on your laptop adds the phone’s items to the laptop. It does not make the two devices the same, and nothing you added only on the laptop is lost:

  • Only on the laptop: kept as it is, even an item the phone deleted before the backup was made.
  • Only in the backup: added.
  • In both (the same item, because the devices synced or restored from each other before): the backup’s copy replaces the laptop’s, even when the laptop’s copy is newer.

Items are matched by their identity, not by name or address. A server you added by hand on each device is two different hosts to ZestSSH, so after the restore it shows twice. Delete the one you do not want.

A restore writes only to this device; the phone is not changed. If the laptop syncs, what the restore wrote then syncs to your other devices like any change made on the laptop. To keep devices the same in both directions, use sync, which merges the changes of every device (see How changes are merged).

Automatic backups are off until you turn them on.

  • On a computer or a phone: under Data (on a computer in Settings > Backups and data, on a phone on the Account page), choose Change on the Automatic backups row, then Off, Daily or Weekly. The row shows the last backup.
  • On a phone, also: Settings, Backups and data, Backups. Under Schedule choose Off, Daily or Weekly.
  • Backup places: each automatic backup is kept on this device and copied to every place added. This device is always on. Add WebDAV / Nextcloud adds a server (see WebDAV backup destination); on a phone, Add Google Drive signs in with Google and adds your Drive (a sign-in that is cancelled or fails says “Google Drive was not added.” and adds nothing). On a computer the places are under Settings > Backups and data, Backup places (below Automatic backups); on a phone, under Location in the backup sheet. Google Drive is not offered on a computer.

The first time you turn them on, ZestSSH asks for an Auto-backup password, typed twice, at least 12 characters. It is kept in this device’s secure storage and used for every automatic backup. You need it to restore one. With Encrypt data at rest on, the password is sealed with your encrypted data too, so it opens only while ZestSSH is unlocked (see Data at rest).

An automatic backup is made:

  • when ZestSSH starts and the last one is a day old (Daily) or a week old (Weekly),
  • when ZestSSH leaves the foreground after something a backup holds changed: a host, group, key, snippet, port forward, alert, network, known host key, tag or other account of a host. Typing in a search box does not count, and neither do new commands in the history or a changed setting (they still go into each backup that is made).

ZestSSH keeps the 3 newest automatic backups on this device and deletes older ones. Backups you export yourself are never deleted.

ZestSSH tells you in the notification center when something went wrong: No automatic backup was made when there is no password (with Set password), The automatic backup failed with what stopped it, and The automatic backup is only on this device when a copy to another place failed. If the password is sealed and could not be opened, the failure says so: “Unlock ZestSSH and the next backup is made. If this shows while ZestSSH is unlocked, set the password for automatic backups again.”

Device Backups you export Automatic backups
Android The Download folder, where Android lets the app write there; otherwise the app’s own folder on the phone’s storage The same
iPhone and iPad The app’s own Documents folder The same
Windows, macOS, Linux ZestSSH/backups in your Documents folder ZestSSH/backups in the app’s own data folder, not in Documents

Automatic backups on a computer stay out of Documents on purpose: a Documents folder is often copied to OneDrive or iCloud.

After an export, the dialog shows the exact path. On Android the Download folder can be read by other apps, and the file is still encrypted there. Uninstalling the app on a phone can remove the app’s own folders, so keep a copy somewhere else, or add a WebDAV location.

  • Backups you export: zestssh_backup_YYYY-MM-DDTHH-MM-SS.zest
  • Automatic backups: zestssh_auto_YYYY-MM-DDTHH-MM-SS.zest

Only files that start with zestssh_auto_ are ever deleted by ZestSSH.