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

Is there a way to start a backup from command-line through SSH ?