vdirsyncer icon indicating copy to clipboard operation
vdirsyncer copied to clipboard

Feature request: add a no_delete option to the storage configuration

Open KaiHerlemann opened this issue 2 years ago • 4 comments

I would like to add a no_delete option to the storage configuration.

The read_only option didn't work for our use case:

  1. I want to copy the calendar entries/.ics files that are in multiple calendars A, B, C etc to one calendar X. So, in calendar A are a few one calendar entries, and copying them to calendar X with vdirsyncer is no problem.
  2. Then I want to copy the calendar entries of calendar B to calendar X. This works, but the calendar entries, which were copied from calendar A to calendar X, are deleted from calendar X, because they don't exist in calendar B.
  3. If the read_only option which is enabled for calendars A, B, C would be enabled for calendar X as well, it wouldn't be possible to copy any calendar entry to X.

I have implemented the function in our university without any problems. Since one should wait for the discussion in the issue tracker first, I don't make a pull request yet.

KaiHerlemann avatar Sep 17 '23 20:09 KaiHerlemann

I have implemented the function in our university without any problems. Since one should wait for the discussion in the issue tracker first, I don't make a pull request yet.

How did you implement this?

WhyNotHugo avatar Sep 18 '23 14:09 WhyNotHugo

I have implemented the function in our university without any problems. Since one should wait for the discussion in the issue tracker first, I don't make a pull request yet.

How did you implement this?

See #1090

KaiHerlemann avatar Sep 27 '23 13:09 KaiHerlemann

This overlaps with https://github.com/pimutils/vdirsyncer/issues/1091, and I'd prefer to go with the solution described there in the long term.

I'll still have a look at #1090 in the meantime.

WhyNotHugo avatar Oct 16 '23 09:10 WhyNotHugo

As #1090 is now merged, this would allow to sync a calendar with rolling entries like holidays without loosing old entries if the holiday calendar is rolling and removes old entries. Does it sound right? If so, this could be added to the read-only guide in the docs?

lukengda avatar Jan 04 '24 15:01 lukengda