您好,
能否请您协助解答以下问题:
-
如何在一天内每小时对 Discourse 进行备份?是否可以通过“/admin/site_settings/category/backups”实现?还是应该检查 PostgreSQL 备份机制?
-
请确认一下:在“admin/backups”下创建的所有备份是仅包含数据库备份,还是整个 Discourse 的完整备份?
谢谢。
您好,
能否请您协助解答以下问题:
如何在一天内每小时对 Discourse 进行备份?是否可以通过“/admin/site_settings/category/backups”实现?还是应该检查 PostgreSQL 备份机制?
请确认一下:在“admin/backups”下创建的所有备份是仅包含数据库备份,还是整个 Discourse 的完整备份?
谢谢。
You can view all Backup related settings at Admin > Settings > Backups and modify the backup frequency setting to enable daily backups.
These backups will contain all your Discourse data, this thread will have some more pointers:
Thank you so much for your response. I have already configured the automatic back up Discourse data every day.
But, I would like to take back up of Discourse multiple times in a day. Example: For every 2 hours or 6 hours in a day. How can this be achieved ?
Thank you.
I would use WEBMIN for something like that,
They have a BACKUP area that you can adjust times and dates and restore and backup sites.
How would webmin trigger Discourse to perform a backup?
Can any one please let me know, if it possible to take back up of Discourse multiple times in a day. Example: For every 2 hours or 6 hours in a day.
That’s not supported using a simple admin setting.
You will need to roll your own pg_dump and uploads script for that.
Thanks so much for the response. I will try with pg_dump as suggested.
Hi,
I have one question on Discourse back up:
What ever backups that we see at Admin > Settings > Backups: is it included with file system backup also, or is it just database backup alone ?
Thank you.
It doesn’t include app.yml I believe. You should keep a copy of that somewhere safe. Obviously this doesn’t change very much or often.
To recreate your server you generally only need:
It should only take about 30 minutes to recreate the server with these two things available.
Hi @merefield,
Thank you so much for the response.
Ok, so once I recreate the new server with (backup) app.yml and the back-up ( Admin > Settings > Backups), then all the additional settings that were added to UI or any additional (admin) settings in old discourse server will be appearing in new server ? (I mean, the newly created server will be exactly like copy of old server with out any data loss) ?
You will need to repoint your DNS (A record) to your new IP too (if that has changed).
yeah, that point (DNS & IP) will be taken care. Thank you.