I'm running OMV6 on Raspberry Pi on an SD card, so I want to minimize write as much as possible. I noticed there were these write spikes to the SD card, even though I'm using folder2ram and minimized write as much as possible:
Each spike is over 100MB of write. I used find . -mmin command to find out which files are responsible for these spikes, and were able to trace them to /var/cache/apt/pkgcache.bin and srcpkgcache.bin.
When I ran apt update, I saw it writes over 100MB of data to SD card. I ran it again, and it again wrote another 100MB+ -- apt seems to always download this one URL, even if I just ran apt update a few seconds ago, and then builds package cache binaries again:
Get:8 https://openmediavault-plugin-developers.github.io/packages/debian shaitan InRelease [3934 B]
So I end up with at least 100MB of write from apt update every day. Plus another 100MB after a reboot, as it looks like it runs again after a reboot.
Is it possible to make OMV run apt update just once a week, instead of daily? Maybe I can just move /etc/cron.daily/openmediavault-cron-apt to the /etc/cron.weekly folder? Thank you.