The discussion revolves around backup and restoration planning for a Discourse site. LotusJeff outlines their current backup strategy, including daily database backups, file backups, and server backups, and asks for feedback. Jagster suggests increasing database backup frequency to every 6 hours, citing risk reduction, and shares their cron setup using docker exec app discourse backup --sql-only to create additional backups to S3. pfaffman confirms this method and suggests PostgreSQL replication for critical data. LotusJeff clarifies whether the cron method replaces UI backups, and Jagster confirms they use both methods, prioritizing redundancy over backup volume. The conversation highlights the importance of frequent database backups and the use of cron jobs to enhance data protection.
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.