Operating System - Ubuntu, Linux or something else?

All you need is the yml file and to have backups on s3, configured in the yml file.

Spin up a new server, clone discourse, copy the yml file, rebuild, and then restore the backup from s3.