# 修复损坏的图片 -- 步骤摘要？

**URL:** https://meta.discourse.org/t/fixing-broken-images-summary-of-steps/174364
**Category:** Support
**Created:** [2020年十二月27日 20:47 UTC](https://meta.discourse.org/t/fixing-broken-images-summary-of-steps/174364 "2020-12-27T20:47:26Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![Benjamin\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benjamin_d/32/277831_2.png) [@Benjamin\_D](https://meta.discourse.org/u/Benjamin_D)
#### Post date: [2020年十二月27日 23:29 UTC](https://meta.discourse.org/t/fixing-broken-images-summary-of-steps/174364/3 "2020-12-27T23:29:21Z")

</div>

> [@justin\_gordon](#):
>
> 是否有文档记录了这些 rake 任务？

我认为您的情况与以下描述非常接近：

> [@How to find any missing images?](https://meta.discourse.org/t/how-to-find-any-missing-images/115672/):
>
> I chose to move our site to a new host, and restored from backup after setting up a new DO droplet w 2gb ram and doing a stock install. I didn’t see any errors, and didn’t think to check all the images before shutting down the host. As it turns out, images were missing and no amount of rebaking would help. (Initially posted [here](https://meta.discourse.org/t/error-killed-while-running-rake-posts-rebake/111943) & [here](https://meta.discourse.org/t/images-lost-after-restore-from-backup/112289)) The damage was more easily visible when I ran this command, to remove all empty folders: find /var/discourse/shared/standalone/uploads/default -type d -empty…

---

_[View the full topic](https://meta.discourse.org/t/fixing-broken-images-summary-of-steps/174364)._
