Vdirsyncer is a command-line tool for synchronizing calendars and addressbooks between a variety of servers and the local filesystem.

In this tutorial we will be setting it up to sync calendars and contacts between a Nextcloud server, Google and Apple iCloud.

Simply execute the following script :

curl -s https://packagecloud.io/install/repositories/pimutils/vdirsyncer/script.deb.sh | sudo bash

Now let’s configure this. I will be updating this post in the future with the full config for this setup but for the moment please use this documentation :

http://vdirsyncer.pimutils.org/en/stable/tutorial.html