# I can't get a good backup - it fails after after\_create\_hook

**URL:** https://meta.discourse.org/t/i-cant-get-a-good-backup-it-fails-after-after-create-hook/36946
**Category:** Bug
**Created:** [Décembre 19, 2015, 1:32 UTC](https://meta.discourse.org/t/i-cant-get-a-good-backup-it-fails-after-after-create-hook/36946 "2015-12-19T01:32:38Z")
**Posts on this page:** 1
**Showing post:** 15

<div class="post-metadata">

### Author: ![daath](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daath/32/115536_2.png) [@daath](https://meta.discourse.org/u/daath)
#### Post date: [Avril 20, 2016, 2:06 UTC](https://meta.discourse.org/t/i-cant-get-a-good-backup-it-fails-after-after-create-hook/36946/15 "2016-04-20T14:06:57Z")

</div>

**NOTE** : If I make a backup _without files_, it completes and uploads to my S3 bucket.

Now this is fine, but I would like to keep a backup of uploaded images/files as well - I could live without that, if I could use S3 to keep files/uploads directly, but I don’t know how to set it up properly:

> [@S3 upload bucket, cdn url and bucket name in CNAME](https://meta.discourse.org/t/s3-upload-bucket-cdn-url-and-bucket-name-in-cname/42549):
>
> Continuing the discussion from [S3 Upload with Vanity Domains](https://meta.discourse.org/t/s3-upload-with-vanity-domains/7359/9): I have some questions! 1: I am running out of space on my droplet because of uploads, so I want to use S3 for my uploads. I might have missed something, but [in the S3 documentation](http://docs.aws.amazon.com/AmazonS3/latest/dev/VirtualHosting.html#VirtualHostingCustomURLs): Because Amazon S3 sees only the original host name www.example.com and is unaware of the CNAME mapping used to resolve the request, the CNAME and the bucket name must be the same. But in the discourse settings in “s3 upload bucket” it says “must be …

---

_[View the full topic](https://meta.discourse.org/t/i-cant-get-a-good-backup-it-fails-after-after-create-hook/36946)._
