Skip to content

Instantly share code, notes, and snippets.

@labrache
Created May 2, 2018 00:08
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save labrache/4f741ee975ab73de2772fd623be048fa to your computer and use it in GitHub Desktop.
vdirsyncer google to synology
[general]
status_path = "~/.vdirsyncer/status/"
# CARDDAV
[pair contacts]
a = "contacts_syno"
b = "contacts_google"
# /!\ can vary
collections = [["contacts", "addressbook", "default"]]
metadata = ["displayname"]
[storage contacts_syno]
type = "carddav"
url = "https://<synology URL(+PORT)>/addressbooks/users/<username>"
username = "<synology username>"
password = "<synology password>"
[storage contacts_google]
type = "google_contacts"
#create token file:
token_file = "~/.vdirsyncer/tokens/googlecontacts"
#get from google API
client_id = "XXXXXXXXXXXXXX.apps.googleusercontent.com"
client_secret = "XXXXXXXXXXXXXX"
# CALDAV
[pair calendar]
a = "calendar_google"
b = "calendar_syno"
#can add calendar: ,["other", "<google agenda>", "<synology CAL>"]
collections = [["main", "<google agenda usually @email>", "<synology CAL usually home>"]]
metadata = ["displayname", "color"]
[storage calendar_syno]
type = "caldav"
url = "https://<synology URL>/caldav/<username>/"
username = "<synology username>"
password = "<synology password>"
[storage calendar_google]
type = "google_calendar"
#create token file:
token_file = "~/.vdirsyncer/tokens/googlecalendar"
#get from google API
client_id = "XXXXXXXXXXXXXX.apps.googleusercontent.com"
client_secret = "XXXXXXXXXXXXXX"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment