# Backup discourse from the command line

**URL:** https://meta.discourse.org/t/backup-discourse-from-the-command-line/64364
**Category:** Self-Hosting
**Tags:** backups, how-to
**Created:** [June 12, 2017, 3:59pm UTC](https://meta.discourse.org/t/backup-discourse-from-the-command-line/64364 "2017-06-12T15:59:45Z")
**Posts on this page:** 1
**Showing post:** 34

<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: [February 18, 2025, 2:18am UTC](https://meta.discourse.org/t/backup-discourse-from-the-command-line/64364/34 "2025-02-18T02:18:16Z")

</div>

There’s a hidden setting that will download the s3 files and our them in the backup.

You need to configure s3 in the yml file as 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)

Then when you restore the backup it’ll push the uploads to the new bucket.

---

_[View the full topic](https://meta.discourse.org/t/backup-discourse-from-the-command-line/64364)._
