I would install a new machine with the new operating system then install the old Jenkins from an operating system package, restore the Jenkins backup from the old machine, then upgrade the Jenkins version on the new machine.
I would install a new machine with the new operating system then install the old Jenkins from an operating system package, restore the Jenkins backup from the old machine, then upgrade the Jenkins version on the new machine.