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 12:00]
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
Line 13: 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 69: 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 78: 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