# Restore fails when including S3 uploads

**URL:** <https://meta.discourse.org/t/restore-fails-when-including-s3-uploads/236567>\
**Category:** Self-hosting\
**Tags:** backups, s3\
**Created:** [August 18, 2022, 9:29pm UTC](https://meta.discourse.org/t/restore-fails-when-including-s3-uploads/236567 "2022-08-18T21:29:15Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![serios](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/serios/32/243268_2.png) [@serios](https://meta.discourse.org/u/serios)\
**Post date:** [August 18, 2022, 9:29pm UTC](https://meta.discourse.org/t/restore-fails-when-including-s3-uploads/236567/1 "2022-08-18T21:29:15Z")

</div>

I am using S3 successfully for both file uploads and backups. But restore will only succeed if I exclude uploads in the backup via “Yes (do not include uploads)”. If I just choose Yes when backing up and include uploads then I get an error in the log:

> EXCEPTION: Some uploads could not be migrated to the new scheme. You need to fix this manually.  
> [2022-08-18 20:57:23] /var/www/discourse/lib/file\_store/to\_s3\_migration.rb:156:in `migrate\_to\_s3’

I’d like the backups to be entirely self-contained and include uploads so I can restore everything from a backup in case I need to migrate everything to another AWS account, some unforeseen disaster or some such event in the future.

---

_[View the full topic](https://meta.discourse.org/t/restore-fails-when-including-s3-uploads/236567)._
