How to backup Docker discourse from command-line before rebuilding broken Discourse?

You’ll be safe doing a rebuild, or a reboot (except EC2). Get it back running again, then take a backup from /admin/backups.