vdirsyncer

Sync Nextcloud calendars for khal.

GitHub: pimutils/vdirsyncer: 📇 Synchronize calendars and contacts.

vdirsyncer discover calendar
vdirsyncer sync

Config

File ~/.config/vdirsyncer/config

[general]
status_path = "~/.vdirsyncer/status/"

# CALDAV
[pair calendar]
a = "calendar_local"
b = "calendar_remote"
collections = ["from a", "from b"]

# Calendars also have a color property
metadata = ["displayname", "color"]

[storage calendar_local]
type = "filesystem"
path = "~/.calendars/"
fileext = ".ics"

[storage calendar_remote]
type = "caldav"
url = "https://nextcloud-url/remote.php/dav/calendars"
username = "user"
password = "pw"