89 lines
2.9 KiB
Plaintext
89 lines
2.9 KiB
Plaintext
# 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 bob_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 = "bob_contacts_local"
|
|
b = "bob_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 bob_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 bob_contacts_remote]
|
|
type = "carddav"
|
|
url = "https://coolneng.duckdns.org/radicale/"
|
|
username = "coolneng"
|
|
# The password can also be fetched from the system password storage, netrc or a
|
|
# custom command. See http://vdirsyncer.pimutils.org/en/stable/keyring.html
|
|
password.fetch = ["command", "pass", "cli/caldav"]
|
|
verify_fingerprint = "AC:98:BC:C1:22:61:D1:43:31:20:0B:45:20:08:74:FA:D3:54:64:5C:CA:49:CB:61:25:A8:B2:9A:3D:A0:48:97"
|
|
|
|
# CALDAV
|
|
[pair bob_calendar]
|
|
a = "bob_calendar_local"
|
|
b = "bob_calendar_remote"
|
|
collections = ["from a", "from b"]
|
|
|
|
[pair google_calendar]
|
|
a = "google_calendar_local"
|
|
b = "google_calendar_remote"
|
|
collections = ["from a", "from b"]
|
|
|
|
# Calendars also have a color property
|
|
metadata = ["displayname", "color"]
|
|
|
|
[storage bob_calendar_local]
|
|
type = "filesystem"
|
|
path = "~/.calendars/radicale"
|
|
fileext = ".ics"
|
|
|
|
[storage bob_calendar_remote]
|
|
type = "caldav"
|
|
url = "https://coolneng.duckdns.org/radicale/"
|
|
username = "coolneng"
|
|
password.fetch = ["command", "pass", "cli/caldav"]
|
|
verify_fingerprint = "AC:98:BC:C1:22:61:D1:43:31:20:0B:45:20:08:74:FA:D3:54:64:5C:CA:49:CB:61:25:A8:B2:9A:3D:A0:48:97"
|
|
|
|
[storage google_calendar_local]
|
|
type = "filesystem"
|
|
path = "~/.calendars/google"
|
|
fileext = ".ics"
|
|
|
|
[storage google_calendar_remote]
|
|
type = "google_calendar"
|
|
token_file = "~/.gauth"
|
|
client_id = "775357222304-1dpf6r6uqp7c9mn0imb0und5kaho5r7p.apps.googleusercontent.com"
|
|
client_secret.fetch = ["command", "pass", "cli/gsuite"]
|