That is suggested way. If you backup your database once a day you are risking max 24 hours worth of what ever happened in that forum.
I’m told at least twice it isn’t any issue, but no one has never explained why not. So I’m backing up my database every 6th hour — my forum isn’t so busy, so I can take that risk. To compare — my e-commerce does backup every 4th minute.
That is Discourse’s own CLI command of backuping, and I was guided that docker exec app executes it outside of container (app on name of the container, of course.
And because I’ve configured S3 that jumps into same bucket where ”normal” backups are too.
There is one small problem… quite soon there is zillion backups. I don’t know if I should do differently sql-dump, move it using aws-cli and then killing everything that is older than some timeframe. Or do same thing in VPS.
Thank you @Jagster and @pfaffman for the assist in setting an additional database via cron. That moves my system down to a worst case 12 hour data loss.