# "discourse: command not found" when trying to restore a backup from the command line

**URL:** <https://meta.discourse.org/t/discourse-command-not-found-when-trying-to-restore-a-backup-from-the-command-line/280391>\
**Category:** Self-hosting\
**Created:** [September 28, 2023, 4:27am UTC](https://meta.discourse.org/t/discourse-command-not-found-when-trying-to-restore-a-backup-from-the-command-line/280391 "2023-09-28T04:27:35Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![shim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shim/32/377650_2.png) [@shim](https://meta.discourse.org/u/shim)\
**Post date:** [September 28, 2023, 3:12pm UTC](https://meta.discourse.org/t/discourse-command-not-found-when-trying-to-restore-a-backup-from-the-command-line/280391/3 "2023-09-28T15:12:28Z")

</div>

> [@Canapin](#):
>
> ` discourse restore`

this really helped me solve all my issues .

> [@Bootstrap failed error after upgrading my server](https://meta.discourse.org/t/bootstrap-failed-error-after-upgrading-my-server/280257):
>
> im having issues rebuilding my forum after upgrading the server on linode FAILED -------------------- Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle config --local deployment true' failed with return #\<Process::Status: pid 505 exit 1\> Location of failure: /usr/local/lib/ruby/gems/3.2.0/gems/pups-1.1.1/lib/pups/exec\_command.rb:117:in `spawn' exec failed with the params {"cd"=\>"$home", "hook"=\>"bundle\_exec", "cmd"=\>["su discourse -c 'bundle config --local deployment true'", "su…

---

_[View the full topic](https://meta.discourse.org/t/discourse-command-not-found-when-trying-to-restore-a-backup-from-the-command-line/280391)._
