Sync to Nextcloud / WebDAV

Upload your Apple Health exports to your own Nextcloud server or any WebDAV-compatible storage. Your data never touches a third-party cloud — it goes directly to your infrastructure.

Compatible Servers

  • Nextcloud
  • ownCloud
  • Synology DSM (WebDAV enabled)
  • Any server running Caddy or nginx with WebDAV
  • Any standard WebDAV endpoint

Prerequisites

  • Health Data Export app (iPhone)
  • A Nextcloud/WebDAV server with a folder already created
  • Your Nextcloud username and an app password (not your login password)

Setup

  1. Open the app → Settings → Sync
  2. Tap the provider selector and choose Nextcloud / WebDAV
  3. Enter your folder URL — for Nextcloud this looks like https://cloud.example.com/remote.php/dav/files/username/HealthData/
  4. Enter your username
  5. Generate an app password in Nextcloud: Settings → Security → App passwords → Create new app password
  6. Paste the app password — stored securely in the iOS Keychain
  7. Choose file naming mode: Timestamped or Stable
  8. Tap Test Connection, then enable Auto-Sync

Finding Your WebDAV URL

For Nextcloud, the WebDAV base URL follows this pattern. Replace the placeholders with your own host, username, and target folder name:

https://<your-nextcloud-host>/remote.php/dav/files/<username>/<folder>/

Note: The trailing slash is required.

File Naming Modes

Mode Behaviour Best for
Timestamped New file each sync, e.g. health-export-2026-04-13.json Building a historical archive
Stable Overwrites same file each sync, e.g. health-export.json n8n automations, always-fresh single file

Troubleshooting

  • "Upload failed: 401" — Check username and app password. Do not use your login password.
  • "Invalid URL" — Make sure the URL ends with a / and points to a folder, not a file.
  • "Upload failed: 404" — The folder doesn't exist on the server yet. Create it in Nextcloud first.
  • HTTPS required — iOS requires HTTPS for WebDAV. Self-signed certs may be rejected; use Let's Encrypt.

See also: Nextcloud setup guide and Dropbox sync.