Skip to content

Nextcloud Setup

Nextcloud is a popular self-hosted cloud platform with built-in WebDAV support. ZestSSH connects to Nextcloud as a WebDAV backup destination.

  • A Nextcloud instance (self-hosted or hosted provider) with HTTPS enabled.
  • A Nextcloud user account.
  • An app password (recommended over your main password).

App passwords provide limited access and can be revoked independently of your main account:

  1. Log in to your Nextcloud web interface.
  2. Go to Settings > Security (or Settings > Personal > Security).
  3. Under Devices & sessions, enter a name (e.g., “ZestSSH Backups”).
  4. Click Create new app password.
  5. Copy the generated password — it will only be shown once.

Nextcloud’s WebDAV endpoint follows this pattern:

https://your-nextcloud.example.com/remote.php/dav/files/USERNAME

Replace:

  • your-nextcloud.example.com with your Nextcloud domain.
  • USERNAME with your Nextcloud username.
ProviderURL Pattern
Self-hostedhttps://cloud.example.com/remote.php/dav/files/john
Hetzner Storage Sharehttps://uNNNNN.your-storageshare.de/remote.php/dav/files/uNNNNN
Other hosted providersCheck your provider’s WebDAV documentation
  1. Open Settings > Backup & Restore > Backup Destinations.
  2. Tap Add Destination > WebDAV.
  3. Enter the following:
FieldValue
Server URLhttps://your-nextcloud.example.com/remote.php/dav/files/USERNAME
UsernameYour Nextcloud username
PasswordThe app password you created
Remote Path/ZestSSH/backups/ (default, or customize)
LabelNextcloud (or any name you prefer)
  1. Tap Test Connection. ZestSSH will send a PROPFIND request to verify credentials and server access.
  2. Save the destination.

After the first backup, your Nextcloud file tree will look like:

/
ZestSSH/
backups/
zestssh_backup_2026-04-18T10-30-00.zest
zestssh_auto_2026-04-17T08-00-00.zest

The ZestSSH/backups/ directory is created automatically via MKCOL if it does not exist. Parent directories are created recursively.

You can browse these files in the Nextcloud web interface or mobile app, but they are encrypted .zest files — opening them requires ZestSSH and the backup password.

If you have 2FA enabled on your Nextcloud account, you must use an app password. Regular passwords will fail with WebDAV when 2FA is active.

Nextcloud’s optional server-side encryption is independent of ZestSSH’s backup encryption. Your .zest files are already encrypted with AES-256-GCM before upload, so server-side encryption provides a redundant layer but is not required.

Each .zest backup file is typically small (a few hundred KB to a few MB depending on your number of connections and identities). Auto-backups retain a maximum of 3 files, so storage usage stays minimal.

If you have Nextcloud desktop or mobile sync enabled, the ZestSSH/backups/ folder will sync to your other devices automatically. This provides an additional local copy of your backups.

IssueSolution
”WebDAV PROPFIND failed: 401”Wrong username or password. Regenerate the app password.
”WebDAV PROPFIND failed: 404”Incorrect URL. Verify your Nextcloud domain and username in the path.
”WebDAV PUT failed: 507”Insufficient storage quota on Nextcloud.
Connection timeoutCheck that HTTPS is properly configured and the server is accessible from your device’s network.
SSL certificate errorsIf using a self-signed certificate, you may need to install the CA certificate on your device.

Nextcloud WebDAV backups survive app uninstall since files are stored on your server. This makes it suitable as a primary backup destination. For maximum safety, consider enabling auto-backup to Nextcloud alongside periodic manual backups.