I won’t breakout the old mind-reading cartoon, but “my system” is pretty vague Is this an emonPi/emonbase emonSD or a home brew? Are you still using a hdd?
Those files are usually only tampered with during apt-get upgrades, have you had a failed upgrade eg reboot or power outage mid upgrade?
If the file were missing from the backup only (assuming it has functioned properly in the past) it might suggest the backup was run during a transitional state, is it possible an automated backup was triggered whilst an apt-get update was in progress? A bit of late night tinkering whilst a backup was being done by cron perhaps?
Replacing the missing files shouldn’t be difficult if you have a spare SDcard or Pi. Exactly how depends on your hardware setup and what you have to hand. But in basic terms you need to mount the faulty image to a working image and put the files in place using the full “mounted” path.
I just downloaded the full 4.9.35 firmware version from the repo and zipped up just the modules folder for you and put it in a public folder on my dropbox as it’s too big to upload here (Dropbox - modules.zip - Simplify your life) so you should be able to download using
sudo wget -O modules.zip https://www.dropbox.com/s/9ysr0tgsfus914a/modules.zip?dl=0
then you should be able to just unzip into place with something like
sudo unzip -o modules.zip -d /mount/point/lib
changing “/mount/point” to whatever you mounted it as, you will probably need to set/check all the permissions too, all the directories under /lib/modules seem to be 755 whilst the files are all 644 and everything is owned by root:root.
That should reinstate the modules folder but without knowing the cause you won’t know if anything else is broke until you try it.
Was the original reason for restoring a backup related or unrelated? The usual cause for kernel discrepancies is the /boot partition not mounted correctly or at least not mounted correctly at the time an upgrade was performed, if running a hdd setup it’s worth checking your /boot folder is mapping to the /boot partition rather than a redundant /boot folder if the fstab isn’t right.
A bit of a PITA but sometimes it brings some peace of mind when you don’t know how or why it went belly up, or the full extent of the damage.