2021-06-16 08:30:14 +02:00
|
|
|
# {{@@ header() @@}}
|
|
|
|
# __ __ _ _
|
|
|
|
# \ \ / /_| (_)_ __ ___ _ _ _ __ ___ ___ _ __
|
|
|
|
# \ \ / / _` | | '__/ __| | | | '_ \ / __/ _ \ '__|
|
|
|
|
# \ V / (_| | | | \__ \ |_| | | | | (_| __/ |
|
|
|
|
# \_/ \__,_|_|_| |___/\__, |_| |_|\___\___|_|
|
|
|
|
# |___/
|
|
|
|
|
|
|
|
|
2020-07-02 06:46:11 +02:00
|
|
|
# An example configuration for vdirsyncer.
|
|
|
|
#
|
|
|
|
# Move it to ~/.vdirsyncer/config or ~/.config/vdirsyncer/config and edit it.
|
|
|
|
# Run `vdirsyncer --help` for CLI usage.
|
|
|
|
#
|
|
|
|
# Optional parameters are commented out.
|
|
|
|
# This file doesn't document all available parameters, see
|
|
|
|
# http://vdirsyncer.pimutils.org/ for the rest of them.
|
|
|
|
|
|
|
|
[general]
|
|
|
|
# A folder where vdirsyncer can store some metadata about each pair.
|
|
|
|
status_path = "~/.vdirsyncer/status/"
|
|
|
|
|
|
|
|
|
|
|
|
# CARDDAV
|
|
|
|
[pair 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 = "contacts_local"
|
|
|
|
b = "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 = null
|
|
|
|
|
|
|
|
[storage contacts_local]
|
|
|
|
# A storage references actual data on a remote server or on the local disk.
|
|
|
|
# Similar to repositories in OfflineIMAP.
|
|
|
|
type = "filesystem"
|
|
|
|
path = "~/.local/share/contacts/"
|
|
|
|
fileext = ".vcf"
|
|
|
|
|
|
|
|
[storage contacts_remote]
|
|
|
|
type = "carddav"
|
2022-02-04 03:09:49 +01:00
|
|
|
url = "https://{{@@ nextcloud.host @@}}/remote.php/dav/addressbooks/users/{{@@ nextcloud.user @@}}/"
|
|
|
|
username = "{{@@ nextcloud.user @@}}"
|
|
|
|
password.fetch = [ "command", "_pass_get", "{{@@ nextcloud.pass @@}}" ]
|
2020-07-02 06:46:11 +02:00
|
|
|
|
|
|
|
# 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 = "~/.local/share/calendars/"
|
|
|
|
fileext = ".ics"
|
|
|
|
|
|
|
|
[storage calendar_remote]
|
|
|
|
type = "caldav"
|
2022-02-04 03:09:49 +01:00
|
|
|
url = "https://{{@@ nextcloud.host @@}}/remote.php/dav/calendars/{{@@ nextcloud.user @@}}/"
|
|
|
|
username = "{{@@ nextcloud.user @@}}"
|
|
|
|
password.fetch = [ "command", "_pass_get", "{{@@ nextcloud.pass @@}}" ]
|
2021-06-16 08:30:14 +02:00
|
|
|
|
|
|
|
# vim: ft=ini
|