This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
computing:linux:sync_calendars_contacts [2023/03/28 10:19] gcooper created |
computing:linux:sync_calendars_contacts [2024/04/13 11:55] (current) gcooper |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Sync Calendars and Contacts ====== | + | ====== Sync Calendars and Contacts |
https:// | https:// | ||
+ | |||
+ | **Docs**: https:// | ||
+ | |||
+ | **Tutorial**: | ||
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 ===== |
- | 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 a server to server sync of two addressbooks. |
+ | |||
+ | <note tip>It may help to use this, or use it to work out your final '' | ||
+ | |||
+ | '' | ||
+ | |||
+ | in conjunction with: | ||
+ | |||
+ | '' | ||
+ | </ | ||
< | < | ||
Line 56: | Line 69: | ||
type = " | type = " | ||
url = " | url = " | ||
+ | username = " | ||
+ | password = " | ||
+ | |||
+ | # CALDAV | ||
+ | |||
+ | [pair Zimbra_NC_Calendars] | ||
+ | a = " | ||
+ | b = " | ||
+ | collections = [[" | ||
+ | |||
+ | # Calendars also have a color property | ||
+ | metadata = [" | ||
+ | |||
+ | [storage zimbra_calendars] | ||
+ | type = " | ||
+ | url = " | ||
+ | username = " | ||
+ | password = " | ||
+ | |||
+ | [storage nextcloud_calendars] | ||
+ | type = " | ||
+ | url = " | ||
username = " | username = " | ||
password = " | password = " | ||
</ | </ | ||
+ | < | ||
+ | vdirsyncer discover | ||
+ | |||
+ | vdirsyncer sync | ||
+ | </ | ||
+ | |||
+ | ===== Scheduled Sync ===== | ||
+ | |||
+ | < | ||
+ | crontab -e | ||
+ | |||
+ | # sync every 15 minutes | ||
+ | */15 * * * * vdirsyncer sync | ||
+ | </ | ||