dotfiles/config/vdirsyncer/config

71 lines
2.3 KiB
Plaintext
Raw Normal View History

2018-03-19 06:29:56 +00:00
# An example configuration for vdirsyncer.
#
2021-02-15 07:31:27 +00:00
# Move it to ~/.cache/vdirsyncer/config or ~/.config/vdirsyncer/config and edit it.
2018-03-19 06:29:56 +00:00
# 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.
2021-02-15 07:31:27 +00:00
status_path = "~/.cache/vdirsyncer/status/"
2018-03-19 06:29:56 +00:00
# # CARDDAV
[pair geoffrey_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 = "geoffrey_contacts_local"
b = "geoffrey_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 geoffrey_contacts_local]
# A storage references actual data on a remote server or on the local disk.
# Similar to repositories in OfflineIMAP.
type = "filesystem"
2021-02-15 07:31:27 +00:00
path = "~/.cache/vdirsyncer/contacts/"
2018-03-19 06:29:56 +00:00
fileext = ".vcf"
[storage geoffrey_contacts_remote]
type = "carddav"
2019-01-06 13:05:05 +00:00
url = "https://cloud.frogeye.fr/remote.php/dav"
2018-03-19 06:29:56 +00:00
username = "geoffrey"
password.fetch = ["command", "sh", "-c", "cat ~/.config/vdirsyncer/pass"]
# CALDAV
[pair geoffrey_calendar]
a = "geoffrey_calendar_local"
b = "geoffrey_calendar_remote"
collections = ["from a", "from b"]
# Calendars also have a color property
metadata = ["displayname", "color"]
2018-07-10 12:50:07 +00:00
# conflict_resolution = "a wins"
# conflict_resolution = "b wins"
2018-03-19 06:29:56 +00:00
[storage geoffrey_calendar_local]
type = "filesystem"
2021-02-15 07:31:27 +00:00
path = "~/.cache/vdirsyncer/calendars/"
2018-03-19 06:29:56 +00:00
fileext = ".ics"
[storage geoffrey_calendar_remote]
type = "caldav"
2019-01-06 13:05:05 +00:00
url = "https://cloud.frogeye.fr/remote.php/dav"
2018-03-19 06:29:56 +00:00
username = "geoffrey"
password.fetch = ["command", "sh", "-c", "cat ~/.config/vdirsyncer/pass"]