DocsYour devices
Sync clients: CalDAV, CardDAV and WebDAV
The OwnWing apps for iPhone, Android, Mac and Windows sign in with OwnWing ID and need nothing here. This page is for the other clients: the calendar, contacts and file apps built into phones and computers, Thunderbird, DAVx5, rclone. They speak the open standards (CalDAV for Calendar and Reminders, CardDAV for Contacts, WebDAV for Files) and sign in with a username and an app password.
App passwords
An app password is a password OwnWing ID makes for one device, for the apps you pick. It is never your own sign-in, and you can revoke it alone.
- OwnWing ID › Sign-in & security › App passwords › New (on the web, or in the iPhone or Android app). It asks you to confirm it’s you first.
- Name it after the device (“Alice’s laptop”), and pick its apps (Calendar, Reminders, Contacts, Files), each read-only or read and write.
- It is shown once: type or paste it into the client now.
The list shows when each was last used and from where. Revoke one when you lose or give away a device; pausing or removing a person revokes all of theirs.
Your username in every client is your OwnWing username (not your email).
Addresses
With your domain in place of example.com, and :<port> after each name if HTTPS isn’t on 443:
| What | Address | Protocol |
|---|---|---|
| Calendar and Reminders | https://calendar.example.com (clients find the rest from /.well-known/caldav) |
CalDAV |
| Contacts | https://contacts.example.com (/.well-known/carddav) |
CardDAV |
| Files | https://files.example.com/dav/ |
WebDAV |
A client that asks for a “server” and nothing else wants the first column’s name only.
iPhone and Mac: one tap
The OwnWing app’s Settings › This iPhone › Calendar, Reminders & Contacts installs a profile that adds both accounts with a fresh app password (and your install’s certificate root, when it makes its own). On a Mac: OwnWing ID › Sign-in & security › This Mac, then System Settings › General › Device Management. Removing the profile, or revoking its app password, stops the sync.
By hand instead: Settings › Calendar › Accounts › Add Account › Other › Add CalDAV Account
(server calendar.example.com, your username, an app password); the same under Contacts ›
Add CardDAV Account with contacts.example.com. On a Mac: System Settings › Internet Accounts ›
Add Other Account › CalDAV account / CardDAV account (account type Manual).
Android without the OwnWing app: DAVx5
DAVx5 (on F-Droid and Google Play) syncs Android’s own calendar, tasks and contacts:
- DAVx5 › + › Login with URL and user name.
- Base URL
https://calendar.example.com, your username, an app password with Calendar and Reminders. Create the account; pick the calendars and lists to sync. - Again with
https://contacts.example.comand an app password with Contacts.
Tasks need a tasks app that reads DAVx5’s lists, such as jtx Board or Tasks.org. If your install makes its own certificates, install its root on the phone first (android.md).
Thunderbird
Calendar: Thunderbird’s calendar › New Calendar › On the Network, username and
https://calendar.example.com: it finds your calendars and lists. Contacts: Address Book › New
Address Book › CardDAV, with https://contacts.example.com. Use an app password when it asks.
Linux desktops
GNOME: Settings › Online Accounts › Calendar, Contacts and Files (WebDAV), with the server
https://calendar.example.com or contacts.example.com; Files with https://files.example.com/dav/.
KDE: System Settings › Online Accounts, or Kontact’s DAV groupware resource.
Files over WebDAV
Your whole drive, at https://files.example.com/dav/ (with :<port> if HTTPS isn’t on 443), as it
is on the web: the Vault, the server’s hidden folders and Finder’s and Windows’ ._ and
Thumbs.db leftovers never show, and folders an app manages for you are read-only. Sign in with
your username and an app password for Files (read-only passwords list and download, nothing
else). A file you save over keeps what it had as an earlier version, and a delete goes to
Files’ trash, so a mistake over WebDAV is as undoable as one on the web. Activity says “through
WebDAV (Alice’s laptop)”, with the app password’s name.
- Mac Finder: Go › Connect to Server ›
https://files.example.com/dav/, then your username and the app password (Keychain can remember it). Finder locks a file while an app has it open; the locks end when it closes it, and after an hour at most. - Windows Explorer: This PC › Map network drive › Folder
https://files.example.com/dav/, “Connect using different credentials”. Windows only accepts it over HTTPS with a certificate it trusts (windows.md has your install’s root), and its WebClient refuses files over 50 MB until you raiseFileSizeLimitInBytesunderHKLM\SYSTEM\CurrentControlSet\Services\WebClient\Parameters(to4294967295, then restart the WebClient service). - Linux: Files (Nautilus) › Other Locations ›
davs://files.example.com/dav/; KDE’s Dolphin:webdavs://files.example.com/dav/. - rclone:
rclone config› new remote ›webdav, URLhttps://files.example.com/dav/, vendorother, your username and the app password. Thenrclone sync,rclone copy,rclone mount.
These see your files as they are, with locking while someone edits; they don’t keep files on demand. The Mac and Windows apps do (mac.md, windows.md).
Keep a folder in step with rclone bisync
rclone bisync copies changes both ways between a folder on this computer and one in your drive,
for a computer that has no OwnWing app. With a remote called ownwing (made above) and a drive
folder Documents:
# once: the first run lists both sides and makes them equal (nothing is deleted)
rclone bisync ~/Documents ownwing:Documents --resync --create-empty-src-dirs --compare size
# then, each time (by hand, or from cron or a systemd timer every few minutes)
rclone bisync ~/Documents ownwing:Documents --create-empty-src-dirs --compare size \
--conflict-resolve newer --resilient --recover --max-delete 25
--compare sizebecause uploads over WebDAV set a file’s time to the moment it arrives (vendorothercan’t set it), so times differ on the two sides even when the files are the same. If you need times, make the remote with vendorowncloud: it sends each file’s own time inX-OC-Mtime, which Files honours, and--compare size,modtimeworks.--conflict-resolve newerkeeps the newer copy of a file both sides changed and renames the other (name.conflict1). Without it bisync stops and asks.--max-delete 25(percent) is the safety net: a run that would delete more than that of either side stops, so an unplugged disk or an empty folder never empties your drive. Deletes on the OwnWing side go to Files’ trash; on the computer’s side, rclone’s--backup-dirkeeps them if you add it.- After an error or a killed run,
--resyncagain (it’s safe);--recoverand--resilientabove make bisync carry on after a dropped connection by themselves. - Use an app password with Files: read and write named for that computer, and revoke it from
OwnWing ID if you lose the computer. Large files upload in one piece: on a slow connection, run
rclonewith--timeout 5m --low-level-retries 10.
Go back to an earlier day
If your install shows filesystem snapshots to Files (configuration.md,
FILES_SNAPSHOTS_DIR), a folder’s Details (on the web and in the iPhone app) lists Earlier days:
pick one, see what is missing or changed since, and bring those back. Nothing is deleted, and a file
that changed keeps what it had as an earlier version. Without snapshots the section isn’t there; the
trash and versions still cover deleted and replaced files for 30 days.
Away from home
Every client here reaches the same addresses, so it syncs wherever it can reach your server: at home, or over a tailnet (tailnet.md).