# How to download Discourse backup and restore local database

**URL:** <https://meta.discourse.org/t/discourse/279041>\
**Category:** Self-hosting\
**Tags:** chinese-translation\
**Created:** [September 14, 2023, 6:01pm UTC](https://meta.discourse.org/t/discourse/279041 "2023-09-14T18:01:59Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![captno78](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@captno78](https://meta.discourse.org/u/captno78)\
**Post date:** [October 3, 2023, 1:52pm UTC](https://meta.discourse.org/t/discourse/279041/3 "2023-10-03T13:52:33Z")

</div>

How do I use Minio for backups? I don’t understand the error messages in the logs. The logs are as follows:

```plaintext
....
[2023-10-03 13:33:24] Removing tmp '/var/www/discourse/tmp/backups/default/2023-10-03-133319' directory...
[2023-10-03 13:33:24] Gzipping archive, this may take a while...
[2023-10-03 13:33:25] Uploading archive...
[2023-10-03 13:33:27] EXCEPTION: Aws::S3::Errors::Forbidden
[2023-10-03 13:33:27] /var/www/discourse/vendor/bundle/ruby/3.2.0/gems/aws-sdk-s3-1.114.0/lib/aws-sdk-s3/object.rb:445:in `rescue in exists?'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/aws-sdk-s3-1.114.0/lib/aws-sdk-s3/object.rb:440:in `exists?'
/var/www/discourse/lib/backup_restore/s3_backup_store.rb:46:in `upload_file'
/var/www/discourse/lib/backup_restore/backuper.rb:344:in `upload_archive'
/var/www/discourse/lib/backup_restore/backuper.rb:41:in `run'
/var/www/discourse/script/spawn_backup_restore.rb:9:in `backup'
/var/www/discourse/script/spawn_backup_restore.rb:31:in `block in <main>'
/var/www/discourse/script/spawn_backup_restore.rb:4:in `fork'
/var/www/discourse/script/spawn_backup_restore.rb:4:in `<main>'
[2023-10-03 13:33:27] Deleting old backups...
[2023-10-03 13:33:28] Cleaning stuff up...
[2023-10-03 13:33:28] Removing archive from local storage...
[2023-10-03 13:33:28] Removing '.tar' leftovers...
[2023-10-03 13:33:28] Marking backup as finished...
[2023-10-03 13:33:28] Notifying 'XXX' of the end of the backup...

```

---

_[View the full topic](https://meta.discourse.org/t/discourse/279041)._
