# Backup/Migrate/Cdn/no-Images

**URL:** https://meta.discourse.org/t/backup-migrate-cdn-no-images/143957
**Category:** Self-hosting
**Tags:** cdn
**Created:** [March 11, 2020, 7:31pm UTC](https://meta.discourse.org/t/backup-migrate-cdn-no-images/143957 "2020-03-11T19:31:55Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![eextra](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eextra/32/170266_2.png) [@eextra](https://meta.discourse.org/u/eextra)
#### Post date: [March 11, 2020, 7:31pm UTC](https://meta.discourse.org/t/backup-migrate-cdn-no-images/143957/1 "2020-03-11T19:31:55Z")

</div>

I’ve already read the threads that there’s often a problem with moving.

I’m just testing it, actually. And now I don’t know if maybe I’m doing something in a bad order?

the rake rebake post command returns 0 - so all posts are ok.

And now there’s a question. Maybe backup should be done after disconnecting from cdn? i.e. rebulld forum so that it does not use cdn and only then do the backup and move to another server?

---

<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: [March 12, 2020, 4:31pm UTC](https://meta.discourse.org/t/backup-migrate-cdn-no-images/143957/2 "2020-03-12T16:31:27Z")

</div>

If you change the CDN then you’ll need to rebake after you change it. Do you have CDN configured on the new site?

---

<div class="post-metadata">

### Author: ![eextra](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eextra/32/170266_2.png) [@eextra](https://meta.discourse.org/u/eextra)
#### Post date: [March 13, 2020, 8:37am UTC](https://meta.discourse.org/t/backup-migrate-cdn-no-images/143957/3 "2020-03-13T08:37:22Z")

</div>

I moved the page . And there are no pictures. I added “old” cdn. There were some pictures but only for a while (cache ? ) but later those pictures disappeared.

I added a new adress cdn2.domain . But it didn’t help.  
So i deleted cdn. And now I’m checking by hand copying files with original images to the current folder.

I copied all the files, then I tried the command like this:

> ```
> ./launcher enter app
> rake posts:missing_uploads
> rake uploads:regenerate_missing_optimized
> rake posts:inline_uploads
> rake uploads:missing
> rake posts:rebake
> 
> ```

but it didn’t help, the pictures still don’t want to be restored.

That’s why I tried 3 more ways. So I set S3 and so I copied all images (original and optimized folder) (copy-paste) into bucket . But there is a problem because the rake migrate [Migrating uploads to S3 for 'default'... rake aborted!](https://meta.discourse.org/t/migrating-uploads-to-s3-for-default-rake-aborted/144033) command returns an error. eh…

---

<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: [March 13, 2020, 12:58pm UTC](https://meta.discourse.org/t/backup-migrate-cdn-no-images/143957/4 "2020-03-13T12:58:46Z")

</div>

We the images being served by the new server? Do they all exist there? You need to copy them manually or by restoring a full backup.

---

<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: [March 4, 2024, 1:31pm UTC](https://meta.discourse.org/t/backup-migrate-cdn-no-images/143957/5 "2024-03-04T13:31:10Z")

</div>


