discourse.conf is generated from app.yml, it is not included in the backup file.
Generally, what’s in discourse.conf overrides the site settings.
So if you have setting_foo in your database, you can override it by defining DISCOURSE_SETTING_FOO in your app.yml which will then generate setting_foo in discourse.conf.