# Cannot restore backup from cli

**URL:** <https://meta.discourse.org/t/cannot-restore-backup-from-cli/286803>\
**Category:** Self-hosting\
**Tags:** backups\
**Created:** [November 28, 2023, 4:10am UTC](https://meta.discourse.org/t/cannot-restore-backup-from-cli/286803 "2023-11-28T04:10:30Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![jericson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jericson/32/116215_2.png) [@jericson](https://meta.discourse.org/u/jericson)\
**Post date:** [November 28, 2023, 4:31am UTC](https://meta.discourse.org/t/cannot-restore-backup-from-cli/286803/3 "2023-11-28T04:31:35Z")

</div>

> [@darkpixlz](#):
>
> `gzip: stdin: unexpected end of file`

This is likely the critical error. Have you tried verifying the backup isn’t corrupt? I think [this would work](https://stackoverflow.com/questions/2001709/how-to-check-if-a-unix-tar-gz-file-is-a-valid-file-without-uncompressing):

```plaintext
$ gunzip -c blackiron-2022-12-03-163112-v20221201035918.tar.gz | tar -t > /dev/null

```

---

_[View the full topic](https://meta.discourse.org/t/cannot-restore-backup-from-cli/286803)._
