# No se pudo restaurar desde la copia de seguridad porque el archivo fue renombrado

**URL:** <https://meta.discourse.org/t/failed-to-restore-from-backup-because-backup-file-was-renamed/103700>\
**Category:** Support\
**Created:** [7 Diciembre, 2018 13:11 UTC](https://meta.discourse.org/t/failed-to-restore-from-backup-because-backup-file-was-renamed/103700 "2018-12-07T13:11:19Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)\
**Post date:** [7 Diciembre, 2018 16:17 UTC](https://meta.discourse.org/t/failed-to-restore-from-backup-because-backup-file-was-renamed/103700/7 "2018-12-07T16:17:58Z")

</div>

Open the backup file and extract the `dump.sql` file from the `dump.sql.gz`. Open the `dump.sql` file and look for a block of numbers that gets inserted into the `schema_migrations` table.

```plaintext
COPY public.schema_migrations (version) FROM stdin;
20000225050318
20120311163914
20120311164326
...
20181031165343
20181112013117
20181120140552
\.

```

Take the highest number and append it to your backup file. Make sure to prefix the number with `-v`. For example, it might look like this: mybackup- **v20181120140552**.tar.gz

---

_[View the full topic](https://meta.discourse.org/t/failed-to-restore-from-backup-because-backup-file-was-renamed/103700)._
