Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| owncloud [21.03.2017 06:21] – [synchronize external caldav and carddav sources] Pascal Suter | owncloud [16.07.2021 00:30] (current) – [synchronize external caldav and carddav sources] Pascal Suter | ||
|---|---|---|---|
| Line 119: | Line 119: | ||
| ===== synchronize external caldav and carddav sources ===== | ===== synchronize external caldav and carddav sources ===== | ||
| + | **UPDATE** I have moved away from python virtualenv as it broke vdirsyncer on almost every os update. I now run vdirsyncer in a docker container based on [[https:// | ||
| + | |||
| **caution** this has only been done one-way, so that an external calender which is only changed externally gets regularly synced to owncloud. i haven' | **caution** this has only been done one-way, so that an external calender which is only changed externally gets regularly synced to owncloud. i haven' | ||
| Line 127: | Line 129: | ||
| pip install pipsi | pip install pipsi | ||
| pipsi --home / | pipsi --home / | ||
| + | mkdir / | ||
| + | chmod 777 / | ||
| now it's time to configure your vdirsyncer.. in my case i wanted to sync a html read-only source (ical format) to owncloud. here is my config file: | now it's time to configure your vdirsyncer.. in my case i wanted to sync a html read-only source (ical format) to owncloud. here is my config file: | ||
| < | < | ||
| [pair photokiste] | [pair photokiste] | ||
| - | a = photokiste_crm | + | a = "photokiste_crm" |
| - | b = photokiste_owncloud | + | b = "photokiste_owncloud" |
| collections = null | collections = null | ||
| - | conflict_resolution = a wins | + | conflict_resolution = "a wins" |
| [storage photokiste_crm] | [storage photokiste_crm] | ||
| - | type = http | + | type = "http" |
| - | url = https:// | + | url = "https:// |
| [storage photokiste_owncloud] | [storage photokiste_owncloud] | ||
| - | type = caldav | + | type = "caldav" |
| - | url = https:// | + | url = "https:// |
| - | username = myuser | + | username = "myuser" |
| - | password = mysecret | + | password = "mysecret" |
| </ | </ | ||
| the owncloud calendar name can be viewed by hovering over the calendar. it will appear as mouse pointer tooltip. | the owncloud calendar name can be viewed by hovering over the calendar. it will appear as mouse pointer tooltip. | ||
| Line 154: | Line 158: | ||
| this might be an onwcloud problem, as owncloud exports the " | this might be an onwcloud problem, as owncloud exports the " | ||
| - | once the config file is written, vdirsyncer can be run through cron or manually like this: | + | once the config file is written, |
| - | VDIRSYNCER_CONFIG=/ | + | VDIRSYNCER_CONFIG=/ |
| + | now vdirsyncer can be run through cron or manually like this: | ||
| + | VDIRSYNCER_CONFIG=/ | ||
| that's it :) .. theoretically vdirsyncer should also support two way sync, but i haven' | that's it :) .. theoretically vdirsyncer should also support two way sync, but i haven' | ||
| + | ==== Update Vdirsyncer ==== | ||
| + | you can run updates using pipsi as well: | ||
| + | pipsi --home / | ||
| + | ==== fix vdirsyncer after OS upgrade ==== | ||
| + | you might just need to re-install vdirsyncer after a os upgrade because the python version behind the virtualenv changed and is no longer compatible with the environment. in that case just rename the ''/ | ||