# Cron task to sync local backups to DigitalOcean Spaces

**URL:** https://meta.discourse.org/t/cron-task-to-sync-local-backups-to-digitalocean-spaces/214998
**Category:** Support
**Created:** [January 16, 2022, 7:15am UTC](https://meta.discourse.org/t/cron-task-to-sync-local-backups-to-digitalocean-spaces/214998 "2022-01-16T07:15:22Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [January 17, 2022, 3:59pm UTC](https://meta.discourse.org/t/cron-task-to-sync-local-backups-to-digitalocean-spaces/214998/7 "2022-01-17T15:59:44Z")

</div>

If the `Forbidden` logs are from Discourse and not s3fs, trying to save to the Spaces bucket then it’s something like you have the wrong credentials or wrong bucket name.

Ah!

```
   Failed to list backups from S3:

```

Ah. I think that’s the problem. It’s trying to get a bucket list and can’t. I’m not quite sure how to fix it, but that’s the problem that you want to solve, so you might edit the subject. If you want to fix your S3 backups, you can get help here; if you want to configure `s3fs` you’ll llkely need to seek help elsewhere.

Try this ENV variable in your `app.yml`

```
  FORCE_S3_UPLOADS: 1

```

IS your endpoint correct? Have a look at the Digital Ocean section in [Using Object Storage for Uploads (S3 & Clones)](https://meta.discourse.org/t/using-object-storage-for-uploads-s3-clones/148916).

---

_[View the full topic](https://meta.discourse.org/t/cron-task-to-sync-local-backups-to-digitalocean-spaces/214998)._
