Skip to content

WebDAV backup destination

On a phone or tablet, ZestSSH can copy each automatic backup to a WebDAV server you run, such as Nextcloud, ownCloud or a NAS. The copies are the same encrypted .zest files that stay on the device, so the server never sees what is inside them.

Backup or sync. This page is about WebDAV as a place for backup copies: dated .zest files under /ZestSSH/backups/. WebDAV can also be your sync storage, a single encrypted file under /ZestSSH/sync/ that all your devices keep up to date; see Cloud sync. The two use different folders and do not get in each other’s way.

  • Every automatic backup is made on the device first, then copied to each WebDAV location you added.
  • Backups you export by hand are not copied.
  • ZestSSH does not list, download or restore backups from the server. To restore one, download the .zest file from your server (for example in its web page), then use Import on the Account page. See Restore a backup.
  • ZestSSH keeps only the 3 newest automatic backups on the device, but it does not delete old copies on the server. Delete them there when you want to.
  • A computer has no screen to add a WebDAV backup location. On a computer, use WebDAV as sync storage instead, or copy exported backups yourself.
  1. On the phone, open More, Settings, Backups and data, then Backups.
  2. Under Location, choose Add WebDAV / Nextcloud.
  3. Fill in the form:
Field What to enter
Label A name for the list. It starts as Nextcloud; left empty, it is saved as WebDAV.
Server URL The server’s WebDAV address. It must start with https://. For example https://cloud.example.com/remote.php/dav/files/sam.
Username Your user name on the server.
Password / app token The password, or better an app password made for ZestSSH.
Remote path The folder on the server. It starts as /ZestSSH/backups/. A / is added at the start and end if missing. Left empty, it is /ZestSSH/backups/ again; type / only if you really want the top of your storage.
  1. Choose Save. ZestSSH says Backup location added.

The form does not test the connection: the first automatic backup does. A folder in Remote path that is not there yet is made on the first copy, each missing level of it.

To remove a location, choose Remove next to it in the same Backups sheet.

ZestSSH speaks plain WebDAV, so any server that follows the standard works.

  1. It checks the folder with a PROPFIND request (Depth: 0). 207 or 200 means the sign-in works and the folder is there.
  2. If the server answers 404 or 409 (signed in, but the folder is not there yet), it makes the folder with MKCOL, one level at a time where a level above is missing too, and checks again. Any other answer skips this location for this backup.
  3. It sends MKCOL for the folder, in case it is missing, and uploads the file with PUT. The server must answer 201 or 204.

Every request signs in with HTTP Basic authentication (your user name and password).

When a copy fails, ZestSSH shows The automatic backup is only on this device and names the location. Its details say what went wrong: “Not authenticated” when the check in step 1 failed (a wrong user name or password, or a wrong address), that the folder could not be made, with the server’s answer, or the server’s answer to the upload, such as 507 when the server is full.

  • The password for the server is kept in the device’s secure storage (the Keychain on iPhone and iPad, encrypted storage on Android), not with the other settings. With Encrypt data at rest on, it is also sealed with your encrypted data, so it opens only while ZestSSH is unlocked. See Data at rest.
  • Use an app password where your server offers one, so you can revoke it without changing your main password.
  • The form accepts only https:// addresses.
  • The backup files are encrypted with AES-256-GCM before they are sent. Someone who can read your server sees only the encrypted files, and needs the auto-backup password to open them.