Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
65 lines (52 sloc) 2.07 KB
# Optional parameters are commented out.
# This file doesn't document all available parameters, see
# http://vdirsyncer.readthedocs.io/ for the rest of them.
[general]
# A folder where vdirsyncer can store some metadata about each pair.
status_path = "~/.vdirsyncer/status/"
# CARDDAV
[pair main_contacts]
# A `[pair <name>]` block defines two storages `a` and `b` that should be
# synchronized. The definition of these storages follows in `[storage <name>]`
# blocks. This is similar to accounts in OfflineIMAP.
a = "main_contacts_local"
b = "main_contacts_remote"
# Synchronize all collections that can be found.
# You need to run `vdirsyncer discover` if new calendars/addressbooks are added
# on the server.
collections = ["from a", "from b"]
# Synchronize the "display name" property into a local file (~/.contacts/displayname).
metadata = ["displayname"]
# To resolve a conflict the following values are possible:
# `null` - abort when collisions occur (default)
# `"a wins"` - assume a's items to be more up-to-date
# `"b wins"` - assume b's items to be more up-to-date
conflict_resolution = "b wins"
[storage main_contacts_local]
# A storage references actual data on a remote server or on the local disk.
# Similar to repositories in OfflineIMAP.
type = "filesystem"
path = "~/.contacts/"
fileext = ".vcf"
[storage main_contacts_remote]
type = "carddav"
url = "https://nextcloud.walladge.net/"
username = "samuel"
password.fetch = ["command", "python", "-c", "print(__import__('netrc').netrc().authenticators('nextcloud.walladge.net')[2])"]
# CALDAV
[pair main_calendar]
a = "main_calendar_local"
b = "main_calendar_remote"
collections = ["from a", "from b"]
conflict_resolution = "b wins"
# Calendars also have a color property
metadata = ["displayname", "color"]
[storage main_calendar_local]
type = "filesystem"
path = "~/.calendars/"
fileext = ".ics"
[storage main_calendar_remote]
type = "caldav"
url = "https://nextcloud.walladge.net/"
username = "samuel"
password.fetch = ["command", "python", "-c", "print(__import__('netrc').netrc().authenticators('nextcloud.walladge.net')[2])"]