Re: Splitting an .ics file up
One thing that is slightly different when going from regenerating one file to splitting it up, is that any calendar entry that has been deleted is now left as a stale file.
To remedy that, I'm using find(1)
to remove the stale files - so I
have a cron job doing something like this:
dump_calendar > /tmp/calender.ics && sudo -u radicale split_ics /tmp/calender.ics /var/lib/radicale/collections/collection-root/asjo/calender.ics && sudo -u radicale find /var/lib/radicale/collections/collection-root/asjo/calender.ics/ -type f -not -path '*/.*' -not -newer /tmp/calender.ics -delete && rm /tmp/calender.ics
I.e. I have a script that writes a single calendar file in /tmp/, I use
split_ics
on it, and then I delete all files that are older than the
temporary single calendar file, before cleaning that file up as well.
Add comment
To avoid spam many websites make you fill out a CAPTCHA, or log in via an account at a corporation such as Twitter, Facebook, Google or even Microsoft GitHub.
I have chosen to use a more old school method of spam prevention.
To post a comment here, you need to:
- Configure a newsreaderยน to connect to the server
- Open the newsgroup called
ยน Such as Thunderbird, Pan, slrn, tin or Gnus (part of Emacs).koldfront.dk
on port1119
using nntps (nntp over TLS).lantern.koldfront
and post a follow up to the article.Or, you can fill in this form: