I agree with Jeff's approach.
Small note on the versions:
On 2023-01-10 18:53, Jeffrey Walton wrote:
If the update fails, then you may need to try
incrementally. Proceed
in sequence: 1.27 to 1.28, 1.28 to 1.29, ..., 1.34 to 1.35.
Each long-term support release (
https://www.mediawiki.org/wiki/LTS)
supports upgrading from the previous one. Occasionally they might even
have bug fixes for the upgrade process missing from non-LTS releases.
So you'd only need to go through 1.27, 1.31 and 1.35.
--
Bartosz Dziewoński