What is the most important file/data folder in the discourse?

you need:

  • back-up including uploads (option when you back up)
  • app.yml

if you have those you can recreate an identical server.