💾 Archived View for gemi.dev › gemlog › 2022-06-08-automating-xkcd.gmi captured on 2023-03-20 at 17:55:19. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-07-16)

-=-=-=-=-=-=-

Automated XKCD with /etc/cron.daily/

2022-06-08 | #XKCD | @Acidus

A few months ago, I built a Gemini mirror of XKCD:

XKCD Comics via Gemini

I was manually running a script which would sync the archives. I finally got around to automated this. I was expecting to edit crontab to create a cron job, but Ubuntu makes this easier by just having a /etc/cron.daily/ folder. Any scripts in there will execute automatically once a day. macOS has a similar concept via a /etc/periodic/daily folder.

The net result is my mirror will stay up-to-date, and you can always fetch the latest XKCD comic here:

Latest XKCD

Linux admin work and automation are a bit like working with ffmpeg: