# How to take backup of Discourse hourly in a day

**URL:** https://meta.discourse.org/t/how-to-take-backup-of-discourse-hourly-in-a-day/95593
**Category:** Self-hosting
**Tags:** backups
**Created:** [August 24, 2018, 4:35pm UTC](https://meta.discourse.org/t/how-to-take-backup-of-discourse-hourly-in-a-day/95593 "2018-08-24T16:35:50Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![pprp](https://avatars.discourse-cdn.com/v4/letter/p/8491ac/32.png) [@pprp](https://meta.discourse.org/u/pprp)
#### Post date: [August 24, 2018, 4:35pm UTC](https://meta.discourse.org/t/how-to-take-backup-of-discourse-hourly-in-a-day/95593/1 "2018-08-24T16:35:51Z")

</div>

Hi,

Could you please help on below:

1. How to take backup of Discourse hourly in a day. Is it possible to do it from “/admin/site\_settings/category/backups” ? or should check PostgreSQL backup mechanism?

2. Can you confirm - what ever back ups created under “admin/backups” is only just Database Backup or entire Discourse backup ?

Thank you.

---

<div class="post-metadata">

### Author: ![rishabh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rishabh/32/179446_2.png) [@rishabh](https://meta.discourse.org/u/rishabh)
#### Post date: [August 24, 2018, 5:02pm UTC](https://meta.discourse.org/t/how-to-take-backup-of-discourse-hourly-in-a-day/95593/2 "2018-08-24T17:02:43Z")

</div>

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:

> [@Configure automatic backups for Discourse](https://meta.discourse.org/t/configure-automatic-backups-for-discourse/14855):
>
> bookmark This guide explains how to configure automatic backups for Discourse, including storage options on local servers and S3-compatible storage. Learn how to set up automatic backups for your Discourse platform. This guide covers configuring automatic backups, storing them on local servers or S3-compatible storage, and managing storage retention options like Amazon Glacier. Configuring automatic backups Navigate to /admin settings. Select the Backup section. Set backup\_frequency to …

---

<div class="post-metadata">

### Author: ![pprp](https://avatars.discourse-cdn.com/v4/letter/p/8491ac/32.png) [@pprp](https://meta.discourse.org/u/pprp)
#### Post date: [August 25, 2018, 1:32am UTC](https://meta.discourse.org/t/how-to-take-backup-of-discourse-hourly-in-a-day/95593/3 "2018-08-25T01:32:02Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![greenmeanie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/greenmeanie/32/119639_2.png) [@greenmeanie](https://meta.discourse.org/u/greenmeanie)
#### Post date: [August 25, 2018, 1:51am UTC](https://meta.discourse.org/t/how-to-take-backup-of-discourse-hourly-in-a-day/95593/4 "2018-08-25T01:51:10Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [August 25, 2018, 4:29am UTC](https://meta.discourse.org/t/how-to-take-backup-of-discourse-hourly-in-a-day/95593/5 "2018-08-25T04:29:02Z")

</div>

How would webmin trigger Discourse to perform a backup?

---

<div class="post-metadata">

### Author: ![pprp](https://avatars.discourse-cdn.com/v4/letter/p/8491ac/32.png) [@pprp](https://meta.discourse.org/u/pprp)
#### Post date: [August 27, 2018, 11:29am UTC](https://meta.discourse.org/t/how-to-take-backup-of-discourse-hourly-in-a-day/95593/6 "2018-08-27T11:29:47Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [August 27, 2018, 12:51pm UTC](https://meta.discourse.org/t/how-to-take-backup-of-discourse-hourly-in-a-day/95593/7 "2018-08-27T12:51:39Z")

</div>

That’s not supported using a simple admin setting.

You will need to roll your own pg\_dump and uploads script for that.

---

<div class="post-metadata">

### Author: ![pprp](https://avatars.discourse-cdn.com/v4/letter/p/8491ac/32.png) [@pprp](https://meta.discourse.org/u/pprp)
#### Post date: [August 28, 2018, 5:29am UTC](https://meta.discourse.org/t/how-to-take-backup-of-discourse-hourly-in-a-day/95593/8 "2018-08-28T05:29:18Z")

</div>

Thanks so much for the response. I will try with pg\_dump as suggested.

---

<div class="post-metadata">

### Author: ![pprp](https://avatars.discourse-cdn.com/v4/letter/p/8491ac/32.png) [@pprp](https://meta.discourse.org/u/pprp)
#### Post date: [September 10, 2018, 12:57pm UTC](https://meta.discourse.org/t/how-to-take-backup-of-discourse-hourly-in-a-day/95593/9 "2018-09-10T12:57:19Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [September 10, 2018, 1:06pm UTC](https://meta.discourse.org/t/how-to-take-backup-of-discourse-hourly-in-a-day/95593/10 "2018-09-10T13:06:39Z")

</div>

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:

- app.yml
- a back-up of the forum generated by the inbuilt functionality.

It should only take about 30 minutes to recreate the server with these two things available.

---

<div class="post-metadata">

### Author: ![pprp](https://avatars.discourse-cdn.com/v4/letter/p/8491ac/32.png) [@pprp](https://meta.discourse.org/u/pprp)
#### Post date: [September 10, 2018, 1:22pm UTC](https://meta.discourse.org/t/how-to-take-backup-of-discourse-hourly-in-a-day/95593/11 "2018-09-10T13:22:46Z")

</div>

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) ?

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [September 10, 2018, 1:25pm UTC](https://meta.discourse.org/t/how-to-take-backup-of-discourse-hourly-in-a-day/95593/12 "2018-09-10T13:25:58Z")

</div>

You will need to repoint your DNS (A record) to your new IP too (if that has changed).

---

<div class="post-metadata">

### Author: ![pprp](https://avatars.discourse-cdn.com/v4/letter/p/8491ac/32.png) [@pprp](https://meta.discourse.org/u/pprp)
#### Post date: [September 10, 2018, 1:28pm UTC](https://meta.discourse.org/t/how-to-take-backup-of-discourse-hourly-in-a-day/95593/13 "2018-09-10T13:28:12Z")

</div>

yeah, that point (DNS & IP) will be taken care. Thank you.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [May 3, 2021, 10:38pm UTC](https://meta.discourse.org/t/how-to-take-backup-of-discourse-hourly-in-a-day/95593/14 "2021-05-03T22:38:45Z")

</div>



---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [April 18, 2023, 11:03am UTC](https://meta.discourse.org/t/how-to-take-backup-of-discourse-hourly-in-a-day/95593/15 "2023-04-18T11:03:55Z")

</div>


