# 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:** [4월 18, 2014, 6:21오전 UTC](https://meta.discourse.org/t/configure-automatic-backups-for-discourse/14855 "2014-04-18T06:21:44Z")
**Posts on this page:** 1
**Showing post:** 44

<div class="post-metadata">

### Author: ![Frez](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/frez/32/49215_2.png) [@Frez](https://meta.discourse.org/u/Frez)
#### Post date: [1월 18, 2016, 3:49오후 UTC](https://meta.discourse.org/t/configure-automatic-backups-for-discourse/14855/44 "2016-01-18T15:49:00Z")

</div>

> [@codinghorror](#):
>
> Note that you can also enable an automatic move to Glacier bucket lifecycle rule to keep your S3 backup costs low.

Setting this up can be rather confusing. Here’s a simple guide to help you out.

- Log into your Discourse admin panel
- Configure daily backups
- Set maximum backups to 7
- Log into your Amazon Web Services account
- Go in the S3 Dashboard
- Open the bucket containing the backups
- Click on the properties tab
- Activate versioning
- Open the Lifecycle menu
- Add a rule for the whole bucket
- Set current version to expire after 15 days
- Set previous version to
- Archive to Glacier after 1 days
- expire after 91 days
- Save and logout

### How it works

Versioning will keep backups automaticly deleted by Discourse. One day after beeing deleted it will be moved to the Glacier storage. After 91 days it will be delete from the Glacier storage.

**Warning**

Amazon charge you for item stored in Glacier for 90 days even if you delete them before. Make sure your Glacier Lyfecicle keep your file at least 90 days.

---

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