瀏覽代碼

Update docs/maintenance-migrating.md

Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
pull/3816/head
Suguru Hirahara 1 年之前
父節點
當前提交
2540d3098c
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: E4F9743DAB4B7B75
共有 1 個檔案被更改,包括 6 行新增4 行删除
  1. +6
    -4
      docs/maintenance-migrating.md

+ 6
- 4
docs/maintenance-migrating.md 查看文件

@@ -1,6 +1,6 @@
# Migrating to new server

This documentation explains how to migrate your Matrix services (server, client, bridges, etc.) from an old server to a new server.
This documentation explains how to migrate your Matrix services (server, client, bridges, etc.) and data from an old server to a new server.

> **Note**: This migration guide is applicable if you migrate from one server to another server having the same CPU architecture (e.g. both servers being `amd64`).
>
@@ -26,7 +26,7 @@ Alternatively, you can log in to the old server and run the command (you might h
systemctl disable --now matrix*
```

## Copy data directory from the old to the new server
## Copy data directory to the new server

Then, copy directory `/matrix` from the old server to the new server. When copying, make sure to preserve ownership and permissions (use `cp -p` or `rsync -ar`)!

@@ -36,7 +36,9 @@ Make sure your DNS records are adjusted to point to the new server's IP address.

## Update `hosts` file

Having adjusted DNS records, remove old server from the `inventory/hosts` file, and add new server to it.
Having adjusted DNS records, replace the old server's external IP address on the `inventory/hosts` file with that of the new server.

**Note**: you can't change the domain after the initial deployment.

## Create `matrix` user and group on the new server

@@ -57,5 +59,5 @@ chown -R matrix:matrix /matrix
Finally, run the command below to finish the installation and start all services:

```sh
ansible-playbook -i inventory/hosts setup.yml --tags=setup-all,start
ansible-playbook -i inventory/hosts setup.yml --tags=install-all,start
```

Loading…
取消
儲存