I was asked to βpatch upβ a group's Mastodon server that was still running an unpatched version 4.0.x.
When I was done, they asked me how I did it so quickly. Here is a #HowTo:
β back up DB
β check out v4.1.15
β follow these upgrade notes: https://github.com/mastodon/mastodon/releases/tag/v4.1.0 (!)
β test
β back up DB
β check out v4.2.8 (latest)
β follow these upgrade notes: https://github.com/mastodon/mastodon/releases/tag/v4.2.0 (!)
β test
β Follow upgrade notes for each version x.y.0, or you will miss migrations!