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
.zestfiles 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.
What it does, and what it does not
Section titled “What it does, and what it does not”- 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
.zestfile 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.
Add a WebDAV location
Section titled “Add a WebDAV location”- On the phone, open More, Settings, Backups and data, then Backups.
- Under Location, choose Add WebDAV / Nextcloud.
- 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. |
- 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.
How a copy is made
Section titled “How a copy is made”ZestSSH speaks plain WebDAV, so any server that follows the standard works.
- It checks the folder with a
PROPFINDrequest (Depth: 0).207or200means the sign-in works and the folder is there. - If the server answers
404or409(signed in, but the folder is not there yet), it makes the folder withMKCOL, one level at a time where a level above is missing too, and checks again. Any other answer skips this location for this backup. - It sends
MKCOLfor the folder, in case it is missing, and uploads the file withPUT. The server must answer201or204.
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.
Security notes
Section titled “Security notes”- 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.
Next steps
Section titled “Next steps”- Nextcloud setup for the Nextcloud address and app password
- Local backups for automatic backups and restoring
- Cloud sync to use WebDAV as sync storage