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

<div class="post-metadata">

**Author:** ![darkpixlz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darkpixlz/32/549896_2.png) [@darkpixlz](https://meta.discourse.org/u/darkpixlz)\
**Post date:** [November 28, 2023, 6:05am UTC](https://meta.discourse.org/t/cannot-restore-backup-from-cli/286803/16 "2023-11-28T06:05:38Z")

</div>

Followed this guide and moved it and got this error:

```plaintext
root@ftsweb-app:/var/www/discourse# discourse restore blackiron-2022-12-03-163112-v20221201035918.tar.gz
Starting restore: blackiron-2022-12-03-163112-v20221201035918.tar.gz
[STARTED]
'system' has started the restore!
Marking restore as running...
Making sure /var/www/discourse/tmp/restores/default/2023-11-28-060452 exists...
Copying archive to tmp directory...
EXCEPTION: /var/www/discourse/lib/discourse.rb:138:in `exec': Failed to copy archive to tmp directory.
cp: cannot open '/var/www/discourse/public/backups/default/blackiron-2022-12-03-163112-v20221201035918.tar.gz' for reading: Permission denied

```

---

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