How to upgrade if `/var/discourse` has only `shared` and is not git repo

This is indeed most likely what’s going on. It’s running Discourse 2.1.0 (if it makes things clearer).

That’s the thing: my instance IS on dedicated hardware.

So, I understand currently no Docker involved. At least, not manually. At least, it’s good to know that there is just one way to set it up and it uses just git clone and the setup script.

What bothers me is how I would gently scrap the old version, given that everything is happening on an actual physical machine (i.e. nothing “virtual”). I did the backup, that’s easy. Now what?