vdirsyncer
is a command-line tool for synchronizing calendars and
address books between a variety of servers and the local filesystem.
The most popular use case is to synchronize a server with a local folder
and use a set of other programs to change the local events and contacts.
vdirsyncer
can then synchronize those changes back to the server.