Create, download, and restore a backup of your Discourse database

have you tried ./discourse-doctor