On Debian and derivatives, there is dpkg-divert which can be used to move package-provided files aside.
This should be used (when available and when acting on a linux-image package installed as .deb) to make the backups when dkms replaces a .ko file.