User Tools

Site Tools


computing:linux:sync_calendars_contacts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
computing:linux:sync_calendars_contacts [2023/03/28 10:57]
gcooper
computing:linux:sync_calendars_contacts [2023/03/28 13:59]
gcooper
Line 1: Line 1:
-====== Sync Calendars and Contacts ======+====== Sync Calendars and Contacts on Linux ======
  
 https://github.com/pimutils/vdirsyncer https://github.com/pimutils/vdirsyncer
 +
 +**Docs**: https://vdirsyncer.pimutils.org/en/stable/index.html
 +
 +**Tutorial**: https://vdirsyncer.pimutils.org/en/stable/tutorial.html
  
 Vdirsyncer is a command-line tool for synchronizing calendars and addressbooks 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. Vdirsyncer is a command-line tool for synchronizing calendars and addressbooks 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.
Line 9: Line 13:
 It aims to be for calendars and contacts what OfflineIMAP is for emails. It aims to be for calendars and contacts what OfflineIMAP is for emails.
  
-===== CardDAV Example Syncing Zimbra and Nextcloud Contacts =====+===== Example Syncing Zimbra and Nextcloud =====
  
 This was done on Linux Mint 21 (Ubuntu) and shows as server to server sync of two addressbooks. This was done on Linux Mint 21 (Ubuntu) and shows as server to server sync of two addressbooks.
Line 19: Line 23:
 in conjunction with: in conjunction with:
  
-''vdirsyncer discover''+''vdirsyncer'' and ''vdirsyncer discover''
 </note> </note>
  
Line 65: Line 69:
 type = "carddav" type = "carddav"
 url = "https://cloud.virtualarchitects.com/remote.php/carddav/" url = "https://cloud.virtualarchitects.com/remote.php/carddav/"
 +username = "nextcloudusername"
 +password = "ncuserpassword"
 +
 +# CALDAV
 +
 +[pair Zimbra_NC_Calendars]
 +a = "zimbra_calendars"
 +b = "nextcloud_calendars"
 +collections = [["Calendar", "Calendar", "personal"], ["Tasks", "Tasks", "tasks"], ["VA Calendar", "VA - Shared Calendar", "va-shared-calendar"]]
 +
 +# Calendars also have a color property
 +metadata = ["displayname", "color"]
 +
 +[storage zimbra_calendars]
 +type = "caldav"
 +url = "https://zimbra.virtualarchitects.com/dav/"
 +username = "username@virtualarchitects.com"
 +password = "zimbrauserpassword"
 +
 +[storage nextcloud_calendars]
 +type = "caldav"
 +url = "https://cloud.virtualarchitects.com/remote.php/caldav/"
 username = "nextcloudusername" username = "nextcloudusername"
 password = "ncuserpassword" password = "ncuserpassword"
Line 74: Line 100:
 vdirsyncer sync vdirsyncer sync
 </file> </file>
 +
 +===== Scheduled Sync =====
 +
 +<file>
 +crontab -e
 +
 +# sync every 15 minutes
 +*/15 * * * * vdirsyncer sync
 +</file>
 +
computing/linux/sync_calendars_contacts.txt · Last modified: 2024/04/13 11:55 by gcooper