# Configure automatic backups for Discourse

**URL:** https://meta.discourse.org/t/configure-automatic-backups-for-discourse/14855
**Category:** Self-Hosting
**Tags:** backups, how-to
**Created:** [April 18, 2014, 6:21am UTC](https://meta.discourse.org/t/configure-automatic-backups-for-discourse/14855 "2014-04-18T06:21:44Z")
**Posts on this page:** 1
**Showing post:** 139

<div class="post-metadata">

### Author: ![th0rgall](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/th0rgall/32/293030_2.png) [@th0rgall](https://meta.discourse.org/u/th0rgall)
#### Post date: [January 25, 2024, 12:22pm UTC](https://meta.discourse.org/t/configure-automatic-backups-for-discourse/14855/139 "2024-01-25T12:22:15Z")

</div>

I had the exact same question, and could not find an explicit answer here or in [Configure an S3 compatible object storage provider for uploads](https://meta.discourse.org/t/configure-an-s3-compatible-object-storage-provider-for-uploads/148916/1).

But, I’ve set up Scaleway S3 Object Storage _for backups only_ with these environment variables, and it seems to work. I just made a manual backup to the bucket this way using the Admin dashboard.

```bash
# Leaving the below parameters commented out 
# because they configure S3 for uploads/CDN distribution, which we don't want.
# DISCOURSE_USE_S3: true
# DISCOURSE_S3_CDN_URL:
# DISCOURSE_S3_BUCKET: 
DISCOURSE_S3_REGION: nl-ams
DISCOURSE_S3_ENDPOINT: https://s3.nl-ams.scw.cloud
DISCOURSE_S3_ACCESS_KEY_ID: <redacted>
DISCOURSE_S3_SECRET_ACCESS_KEY: <redacted>
DISCOURSE_S3_BACKUP_BUCKET: <redacted>
DISCOURSE_BACKUP_LOCATION: s3

```

Static assets are still served from my VPS, as expected & desired, and I’m not seeing any errors. I’m not sure if the scheduled backups will work, but if the manual backup worked, they should too.

~~I’ll add a note to the wiki above that these parameters can be left out if you only want to use S3 for backups, and _not_ for file or image uploads.~~  
~~Update: it’s not a wiki.~~  
Update 2: it was made a wiki at my request, thanks!

---

_[View the full topic](https://meta.discourse.org/t/configure-automatic-backups-for-discourse/14855)._
