# 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:** 17

<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, 6:43am UTC](https://meta.discourse.org/t/cannot-restore-backup-from-cli/286803/17 "2023-11-28T06:43:49Z")

</div>

> [@darkpixlz](#):
>
> `cp: cannot open '/var/www/discourse/public/backups/default/blackiron-2022-12-03-163112-v20221201035918.tar.gz' for reading: Permission denied`

Good chance the file is owned by another user. `ls -l /var/www/discourse/public/backups/default/blackiron-2022-12-03-163112-v20221201035918.tar.gz'` would show the problem, probably.

---

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