# Backup to S3 command?

**URL:** https://meta.discourse.org/t/backup-to-s3-command/173046
**Category:** Support
**Created:** [December 12, 2020, 1:51am UTC](https://meta.discourse.org/t/backup-to-s3-command/173046 "2020-12-12T01:51:22Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![wincenworks](https://avatars.discourse-cdn.com/v4/letter/w/96bed5/32.png) [@wincenworks](https://meta.discourse.org/u/wincenworks)
#### Post date: [December 12, 2020, 1:51am UTC](https://meta.discourse.org/t/backup-to-s3-command/173046/1 "2020-12-12T01:51:22Z")

</div>

Due to some ongoing stability issues - I have had to switch hosting services.

The old host is unable to get the web site to run, however it runs enough to operate in the terminal (albeit at a glacial pace) and so I am trying to enact a backup so that I can move the database as was to the new server. (Particularly since it seems the last automated backup was in October for some reason)

Is there any command that can be actioned through SSH to enact a backup of the database (no attachments) and transfer it to the S3 backup bucket?

---

<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: [December 12, 2020, 2:42am UTC](https://meta.discourse.org/t/backup-to-s3-command/173046/2 "2020-12-12T02:42:10Z")

</div>

If you configure S3 then

```
 discourse backup

```

With backup to S3. You can also turn on the site setting that turns on database only backups.

---

<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: [January 11, 2021, 2:42am UTC](https://meta.discourse.org/t/backup-to-s3-command/173046/3 "2021-01-11T02:42:21Z")

</div>

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