# Migration version is missing from the filename – can't restore from backup

**URL:** <https://meta.discourse.org/t/migration-version-is-missing-from-the-filename-cant-restore-from-backup/77346>\
**Category:** Product Support\
**Created:** [2018 年 1 月 6 日午前 1:24 UTC](https://meta.discourse.org/t/migration-version-is-missing-from-the-filename-cant-restore-from-backup/77346 "2018-01-06T01:24:53Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![meglio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meglio/32/71444_2.png) [@meglio](https://meta.discourse.org/u/meglio)\
**Post date:** [2018 年 1 月 8 日午前 4:12 UTC](https://meta.discourse.org/t/migration-version-is-missing-from-the-filename-cant-restore-from-backup/77346/9 "2018-01-08T04:12:15Z")

</div>

Even though, the way it works now is it copies the file to `/tmp` and decompresses the file, and only then does the file name check. Maybe make the check before decompressing?

---

_[View the full topic](https://meta.discourse.org/t/migration-version-is-missing-from-the-filename-cant-restore-from-backup/77346)._
