# 论坛离线：Web 恢复无法正常工作

**URL:** <https://meta.discourse.org/t/forum-offline-restore-is-not-working-through-web/265272>\
**Category:** Self-hosting\
**Tags:** backups\
**Created:** [2023年五月17日 03:13 UTC](https://meta.discourse.org/t/forum-offline-restore-is-not-working-through-web/265272 "2023-05-17T03:13:47Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Brandon007](https://avatars.discourse-cdn.com/v4/letter/b/b4bc9f/32.png) [@Brandon007](https://meta.discourse.org/u/Brandon007)\
**Post date:** [2023年五月17日 04:03 UTC](https://meta.discourse.org/t/forum-offline-restore-is-not-working-through-web/265272/3 "2023-05-17T04:03:05Z")

</div>

我照做了，但似乎不起作用……

我遵循了我在链接中包含的说明，其中说明：

> [@techAPJ](#):
>
> ## 传输备份
> 
> SSH 到目标服务器，或在目标服务器上创建备份文件夹：
> 
> `mkdir -p /var/discourse/shared/standalone/backups/default`
> 
> 将备份文件上传到目标服务器。
> 
> `scp /path/to/backup/backup.tar.gz root@192.168.1.1:/var/discourse/shared/standalone/backups/default`

## 我的步骤

所以，在我的例子中，我从 root 命令行输入：

`mkdir -p /var/discourse/shared/standalone/backups/default` 然后按 Enter。

除了换行符之外，什么也没发生。

然后我输入：

`scp /Users/brandon/Downloads/forum-name-2023-05-17-011157-v20230510142249.tar.gz` 然后按 Enter。

输出显示：

```plaintext
usage: scp [-346ABCOpqRrsTv] [-c cipher] [-D sftp_server_path] [-F ssh_config]
           [-i identity_file] [-J destination] [-l limit]
           [-o ssh_option] [-P port] [-S program] source ... target

```

然后我输入：

`root@192.168.1.1:/var/discourse/shared/standalone/backups/default`

然后它说：“没有那个文件或目录”

我确实用我的论坛 IP 地址替换了 192.168.1.1 IP。我就是不明白为什么恢复步骤在这里不起作用？

---

_[View the full topic](https://meta.discourse.org/t/forum-offline-restore-is-not-working-through-web/265272)._
