107
First of all, backup below files and folder
server.properties
allowlist.json
permissions.json
worlds (folder)
Get the latest version from official web site – https://www.minecraft.net/en-us/download/server/bedrock
It should be use wget to download the zip file. After that, unzip to new bedrock-server folder.
Restore above files and folder to new bedrock-server folder.
Done.
Refer – https://www.xibel-it.eu/upgrade-a-dedicated-minecraft-bedrock-server-on-linux/