Discourse Forum Automatic Backup Not Running? Try This Fix

Photo of author

By Victor Ashiedu

Published

Have you configured automatic backup on Discourse, forum but it is not running? Before you start looking at any other thing, try this simple fix.

Solution 1: Review Your Discourse Forum Backup Configuration

If the automatic backup is not running on Discourse forum, the first place to look is the backup configuration.

  1. Open the Discourse Backup settings: click the menu icon -> Settings. Then, search backup.
Discourse Automatic Backup Not Running? Try This Fix - Review Your Discourse Backup Configuration
  1. Confirm that your discourse backup has been configured, as shown in the screenshot below. Below this screenshot, I have explained each section of the backup settings.
Discourse Automatic Backup Not Running? Try This Fix - Review Your Discourse Backup Configuration

1) You must check the “enable backups” checkbox. If you uncheck it, you cannot run manual backups, let alone automatic backups.
2) You must check the “automatic backups enabled” checkbox. This is what enables automatic backups to run according to the frequency you define in 3) below
3) You must include a whole number (minimum 1). This is the number of days between backup jobs.

If you set 1, Discourse automatic backups will run daily.

4) Finally, you must specify the time (in UTC) that the automatic backups run. Set the time in 24-hour format.

For example, if you want the backups to run at 11 pm daily, use 23:00.

Solution 2: Run Your First Backup Manually, then Re-schedule the Discourse Automatic Backup

If you look at the Discourse forum backup configuration, there is no place to specify when you want the first automatic backup to run.

Discourse Automatic Backup Not Running? Try This Fix - Run Your First Backup Manually

So, the assumption is that after you set this up, the first automatic backup will run the next time it is due. For example, I set the automatic backup time to 9:30 am in the screenshot above.

So, naturally, I should expect my first backup to run the next 9:30. Well, this was not my experience.

Here is the walkaround I devices.

  1. Take a manual backup. To do this, first, open the Backup page.
  1. Then, when the Backup page opens, click the Backup button to take a manual backup. Discourse will pop up a message asking you to confirm that you want to start a backup. Click Yes.
Wait for the backup to complete. Then, proceed to step 3 below.
Discourse Automatic Backup Not Running? Try This Fix - Run Your First Backup Manually
  1. When the backup is completed, check the log file. Then, note the time the manual backup was completed – mine finished at 12:54:18.
  1. Now click Settings and search backup. Then, reconfigure the time for Discourse automatic backup to run.

    I scheduled the first Discourse automatic backup job to run just 24 hours from the manual backup. Since the Discourse completed my manual backup job at 12:54:18, I will schedule the first automatic backup to run by 13:00.

    However, I strongly recommend that you wait until the current time is past the time you want to schedule. Remember to click the save button (2) after changing the time.
Based on my schedule above, my backup ran successfully after about 24 hours (by 13:03).

Frequently Asked Questions

1. Where are Discourse backups stored?

You can configure Discourse to store backups on the Discourse server’s local storage or S3 (cloud) storage.

2. How do I set up automated backups on Discourse?

Sign in to Discourse as administrator. Then, on the top right, click the Discourse forum menu and select Settings.

When the Settings page opens, type backup in the search box. Then, check the box beside “Run automatic backups as defined in backup frequency”.

Beneath this checkbox, enter the “backup frequency” in number format – the minimum value is 1 for a daily backup

3. How does Discourse automatic backup work?

When you configure automatic backup on Discourse, the forum software uses sidekiq to schedule the backup jobs.

So, when it is time for the next backup job to run, sidekiq triggers the backup job. Then, Discourse completes the backup and save the backup either on the local server’s storage or on S3 cloud storage – depending on your configuration.

4. How do I backup Discourse database only?

To make Discourse backup the Database only without backing up uploads, uncheck “Include uploads in scheduled backups. Disabling this will only backup the database“. This checkbox is beneath “backup time of day” on the Discourse Backup Settings page.

5. Why is Discourse forum auto backup important?

Just like any other automatic backup, Discourse Forum auto backup ensures that your backups run without you having to run it manually. This takes away the risk of forgetting to run the backup.

Moreover, Discourse forum auto backup has the option to automatically delete old backups. This ensures that you do not run our of backup storage space.

Conclusion

I wrote this guide when I was trying to make my Discourse forum automatic backup that was not running.

By following the steps outlined in this guide, my Discourse forum automatic backup is now running as expected.

I hope that you were able to use the steps in this guide to get your Discourse forum automatic backup working! If you did, click on “Yes” beside the “Was this page helpful” question below.

You may also express your thoughts and opinions by using the “Leave a Comment” form at the bottom of this page.

Finally, you may find other articles in our WordPress & Websites How-Tos page helpful.

About the Author

Photo of author

Victor Ashiedu

Victor is the founder of InfoPress Media, publishers of Ilifeguides and Itechguides. With 20+ years of experience in IT infrastructure, his expertise spans Windows, Linux, and DevOps. Explore his contributions on Itechguides.com for insightful how-to guides and product reviews.

Related Articles

Get in Touch

We're committed to writing accurate content that informs and educates. To learn more, read our Content Writing Policy, Content Review Policy, Anti-plagiarism Policy, and About Us.

However, if this content does not meet your expectations, kindly reach out to us through one of the following means:

  1. Respond to "Was this page helpful?" above
  2. Leave a comment with the "Leave a Comment" form below
  3. Email us at [email protected] or via the Contact Us page.

Leave a comment

Send this to a friend