# Automatic backup not working

**URL:** https://meta.discourse.org/t/automatic-backup-not-working/160711
**Category:** Support
**Created:** [August 13, 2020, 5:13am UTC](https://meta.discourse.org/t/automatic-backup-not-working/160711 "2020-08-13T05:13:19Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![lyseoy](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@lyseoy](https://meta.discourse.org/u/lyseoy)
#### Post date: [August 13, 2020, 5:13am UTC](https://meta.discourse.org/t/automatic-backup-not-working/160711/1 "2020-08-13T05:13:19Z")

</div>

I’ve followed [this guide](https://meta.discourse.org/t/setting-up-file-and-image-uploads-to-s3/7229), and [this](https://meta.discourse.org/t/configure-automatic-backups-for-discourse/14855), but my automatic backups fail. When I check in AWS, the public access settings for my bucket is set to “Block all public access”. When I try to allow the necessary public access, the systems says 100% success and the setting is still the same 😂

How do I make the correct settings stick?

Edit: I learned that several settings affect the bucket public access settings. I tried various settings for “Block public access (account settings)” and I checked permissions for Access control lists, Bucket policies and Access point policies, none of which I have.

Here is where I try to allow the public access, is it the right place?

 ![Untitled](https://global.discourse-cdn.com/meta/original/3X/4/5/456a1154edd353446f27ba87dd0d1ba077003dc5.png)

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [August 13, 2020, 9:04am UTC](https://meta.discourse.org/t/automatic-backup-not-working/160711/2 "2020-08-13T09:04:50Z")

</div>

> [@lyseoy](#):
>
> automatic backups fail

What’s the error?

> [@lyseoy](#):
>
> When I try to allow the necessary public access

I’d be careful with that. You don’t want to make your backups public by accident!

---

<div class="post-metadata">

### Author: ![lyseoy](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@lyseoy](https://meta.discourse.org/u/lyseoy)
#### Post date: [August 13, 2020, 9:14am UTC](https://meta.discourse.org/t/automatic-backup-not-working/160711/3 "2020-08-13T09:14:20Z")

</div>

There is no error message. The backup just doesn’t happen when it should.

I am worried about the public access, for sure! At the moment though, I would just like to see a backup successfully stored on S3. I may eventually just abandon the whole automatic backup thing, if I’m not convinced the data will be safe on S3 with the public access that is required for it to work.

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [August 13, 2020, 10:25am UTC](https://meta.discourse.org/t/automatic-backup-not-working/160711/4 "2020-08-13T10:25:45Z")

</div>

As an admin you should get a PM whenever an automatic backup fails. It contains the log output of the backup process.

I have a couple of questions:

- Is this a standard Docker based install?
- Do manual backups work?
- Is there a warning about a paused Sidekiq in the admin dashboard?
- Are your uploads stored on S3 as well or just backups? Are you using different buckets for uploaded files and backups?

> [@lyseoy](#):
>
> public access that is required

Where did you get the idea that it is required? It is not! We might need to clarify our documentation if you read it there.

---

<div class="post-metadata">

### Author: ![lyseoy](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@lyseoy](https://meta.discourse.org/u/lyseoy)
#### Post date: [August 13, 2020, 1:48pm UTC](https://meta.discourse.org/t/automatic-backup-not-working/160711/5 "2020-08-13T13:48:36Z")

</div>

I got no PM’s about failed backups.  
It’s a standard Docker based install.  
Manual backups work.  
No warning of a paused Sidekiq.  
I don’t store uploads on S3.

About the public access requirement, see this thread, in the “Bucket” section:  
[Setting up file and image uploads to S3](https://meta.discourse.org/t/setting-up-file-and-image-uploads-to-s3/7229)

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [August 13, 2020, 2:45pm UTC](https://meta.discourse.org/t/automatic-backup-not-working/160711/6 "2020-08-13T14:45:37Z")

</div>

That’s strange. Did you change any of the backup related settings (see `/admin/site_settings/category/backups`) besides `backup_location`?

---

<div class="post-metadata">

### Author: ![lyseoy](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@lyseoy](https://meta.discourse.org/u/lyseoy)
#### Post date: [August 13, 2020, 3:15pm UTC](https://meta.discourse.org/t/automatic-backup-not-working/160711/7 "2020-08-13T15:15:28Z")

</div>

I did, but to test if any settings were wrong, I reset all of them, except:

backup location: S3  
backup frequency: 1  
S3 backup bucket: “my bucket”  
backup time of day: I set this to a few minutes ahead, to start the backup.

Still nothing happens. I haven’t yet waited a full day for the daily backup to start but I checked that the server is running with the correct time.

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [August 13, 2020, 3:35pm UTC](https://meta.discourse.org/t/automatic-backup-not-working/160711/8 "2020-08-13T15:35:43Z")

</div>

Please note that `backup time of day` is in UTC and not a local time. And backup jobs are only scheduled once per day at midnight, so it won’t start right away. You have to wait a day for it to happen!

---

<div class="post-metadata">

### Author: ![lyseoy](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@lyseoy](https://meta.discourse.org/u/lyseoy)
#### Post date: [August 14, 2020, 1:37am UTC](https://meta.discourse.org/t/automatic-backup-not-working/160711/9 "2020-08-14T01:37:33Z")

</div>

Sure, I’ve been setting the backup time to current UTC + 2 minutes. But why have the “backup time of day” setting if it only happens at midnight? In any case, it’s past UTC midnight now, and again nothing happened. So it seems not a time issue.

---

<div class="post-metadata">

### Author: ![neounix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neounix/32/215617_2.png) [@neounix](https://meta.discourse.org/u/neounix)
#### Post date: [August 14, 2020, 5:55am UTC](https://meta.discourse.org/t/automatic-backup-not-working/160711/10 "2020-08-14T05:55:31Z")

</div>

Hey @lyseoy

Just to be comprehensive, you might also check the Job Scheduler:

```plaintext
https://your-cool-discourse-site.com/sidekiq/scheduler 

```

Then look for the “ScheduleBackup” entry:

![Screen Shot 2020-08-14 at 12.53.08 PM](https://global.discourse-cdn.com/meta/optimized/3X/e/9/e9ba06d051a81ca77ee4d8c907f17ef9c954fce0_2_690x32.jpeg)

If you find the entry, you might want to trigger the job and see if you can trigger it directly from the scheduler.

Hope this provides a new clue or confirms what you already know.

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [August 14, 2020, 10:03am UTC](https://meta.discourse.org/t/automatic-backup-not-working/160711/11 "2020-08-14T10:03:15Z")

</div>

The “ScheduleBackup” job runs at midnight and schedules a backup at `backup time of day` if automatic backups are enabled and the last backup file (automatic or manual) is older than `backup frequency` days.

---

<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: [September 13, 2020, 10:12am UTC](https://meta.discourse.org/t/automatic-backup-not-working/160711/12 "2020-09-13T10:12:23Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
