vdirsyncer icon indicating copy to clipboard operation
vdirsyncer copied to clipboard

Sync is shown as Delete and Recreation

Open balli1187 opened this issue 9 months ago • 4 comments

Hi,

i'm using vdirsyncer on docker (vdirsyncer 0.19.2, Python 3,11,6, pip 24.0.0).

I have a config with several pairs that sync and/or combine calender to my selfhosted nextcloud. Basically everything is working and i have all the events like it was configured.

Nevertheless, the synchronization is not recognized by Nextcloud as a real sync (only new or changed events are processed). All existing elements in the source calendar are deleted and recreated in the destination calendar, even if they are in the past and have not been edited.

As i have shared calendars with my family i enabled push notifications for ne events which leads to a bunch of notifications everytime the sync is started by vdirsyncer.

As sorce calendars. I am mostly using the local storage options cause some calendars can only be downloaded as files or i want to delete some spam in the description of public holidays oder school vacation calender and therefor do.

Any Idea why this is happening?

balli1187 avatar Mar 18 '25 09:03 balli1187

Nevertheless, the synchronization is not recognized by Nextcloud as a real sync (only new or changed events are processed).

I don't entirely understand what you mean by this. Deleted events are not processed?

All existing elements in the source calendar are deleted and recreated in the destination calendar, even if they are in the past and have not been edited.

Can you share vdirsyncer's logs when sync'ing?

WhyNotHugo avatar Mar 18 '25 15:03 WhyNotHugo

I don't entirely understand what you mean by this. Deleted events are not processed?

It allways like I tried to explain here:

All existing elements in the source calendar are deleted and recreated in the destination calendar, even if they are in the past and have not been edited.

To me, a "real sync" means that only new or edited events are transfers from source calendar to destination calendar and existing events are not touched.

But what I (Nextcloud) see is that, even if events already exist in both calendars, they will be deleted and recreated.

Can you share vdirsyncer's logs when sync'ing?

I will add logs as soon as I am back home.

balli1187 avatar Mar 18 '25 17:03 balli1187

vdirsyncer should never delete-and-recreate items, it updates in place.

I will add logs as soon as I am back home.

👍

WhyNotHugo avatar Mar 18 '25 22:03 WhyNotHugo

while reproducing the problem and searching for the logs i noticed something that might explain th behaviour:

As descripted i'm using the local file method because my source calender can only be downloaded as ics file. It looks like the file is newly created evertime it is downloaded, cause uuids are changing. In this case, vdirsyncer cannot recognize that these are the same events, right?

balli1187 avatar Mar 21 '25 09:03 balli1187