# Command line restore for web only container can't load thor

**URL:** https://meta.discourse.org/t/command-line-restore-for-web-only-container-cant-load-thor/68570
**Category:** Development
**Tags:** two-container
**Created:** [August 22, 2017, 10:36pm UTC](https://meta.discourse.org/t/command-line-restore-for-web-only-container-cant-load-thor/68570 "2017-08-22T22:36:58Z")
**Posts on this page:** 1
**Showing post:** 15

<div class="post-metadata">

### Author: ![thoka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thoka/32/115652_2.png) [@thoka](https://meta.discourse.org/u/thoka)
#### Post date: [July 17, 2023, 5:00pm UTC](https://meta.discourse.org/t/command-line-restore-for-web-only-container-cant-load-thor/68570/15 "2023-07-17T17:00:19Z")

</div>

I had a similar error while trying a restore in 3.1.0.6.

```plaintext
d/shell 
sudo gem install thor

```

solved the missing `thor` dependency for me.

But it was a long way to restore a backup by command line:

```plaintext
Downloading archive to tmp directory...
EXCEPTION: Failed to download archive to tmp directory.

```

This was due to the last test data beeing configured for s3 backups.

```plaintext
d/rails c
SiteSetting.backuo_location="local"

```

solved that one.

After moving the backup to `public\backup\default` the unzipping went fine, but then I was struggling again with [Backup restore failing on clean dev docker env: FATAL: Peer authentication failed for user “postgres” - #6 by thoka](https://meta.discourse.org/t/backup-restore-failing-on-clean-dev-docker-env-fatal-peer-authentication-failed-for-user-postgres/208170/6)

> [@Is there any way to restore your site from backup in the terminal?](https://meta.discourse.org/t/is-there-any-way-to-restore-your-site-from-backup-in-the-terminal/42377/7):
>
> So, `script/discourse restore` fails because thor isn’t installed.
> 
> `gem install thor` fixes that, but then I’m still denied because:

😢

---

_[View the full topic](https://meta.discourse.org/t/command-line-restore-for-web-only-container-cant-load-thor/68570)._
