docs: add backup and restore documentations (#237)
添加备份和恢复的使用文档。 /kind documentation Fixes https://github.com/halo-dev/docs/issues/236 ```release-note None ```
48
docs/user-guide/backup.md
Normal file
@@ -0,0 +1,48 @@
|
||||
---
|
||||
title: 备份与恢复
|
||||
description: 备份与恢复功能说明
|
||||
---
|
||||
|
||||
从 Halo 2.8 开始,Halo 内置了备份和恢复的功能,可以在 Console 中一键备份和恢复完整的数据。
|
||||
|
||||
## 备份
|
||||
|
||||
在 Console 中,点击左侧菜单的 `备份`,进入备份页面。
|
||||
|
||||
点击右上角的 `创建备份` 按钮,即可创建一个新的备份请求,需要注意的是,创建备份请求并不会立即开始备份,而是会在后台异步执行,因此需要等待一段时间才能看到备份的结果。
|
||||
|
||||

|
||||
|
||||
备份中:
|
||||
|
||||

|
||||
|
||||
备份完成:
|
||||
|
||||

|
||||
|
||||
## 恢复
|
||||
|
||||
:::info 在恢复前,需要了解以下几点:
|
||||
|
||||
1. 恢复不限制部署方式,也不限制数据库,也就是说新站点的部署方式和数据库类型可以和备份的站点不同。
|
||||
2. 恢复过程可能会持续较长时间,期间请勿刷新页面。
|
||||
3. 在恢复的过程中,虽然已有的数据不会被清理掉,但如果有冲突的数据将被覆盖。
|
||||
4. 恢复完成之后会提示停止运行 Halo,停止之后可能需要手动运行。
|
||||
:::
|
||||
|
||||
在 Console 中,点击左侧菜单的 `备份`,进入备份页面,然后点击 `恢复` 选项卡即可进入恢复界面,阅读完注意事项之后点击 `开始恢复` 按钮即可显示备份文件上传界面。
|
||||
|
||||

|
||||

|
||||
|
||||
选择备份文件后,点击 `上传` 按钮即可开始上传备份文件,上传完成后会自动开始恢复。
|
||||
|
||||

|
||||
|
||||
恢复完成,会提示重启 Halo,点击 `确定` 按钮即可重启 Halo。
|
||||
|
||||

|
||||

|
||||
|
||||
最后,建议去服务器检查 Halo 的运行状态,如果没有设置自动重启,需要手动重启。
|
||||
@@ -72,6 +72,7 @@ module.exports = {
|
||||
"user-guide/plugins",
|
||||
"user-guide/users",
|
||||
"user-guide/settings",
|
||||
"user-guide/backup",
|
||||
"user-guide/faq",
|
||||
],
|
||||
},
|
||||
|
||||
BIN
static/img/user-guide/backup/backup-complete.png
Normal file
|
After Width: | Height: | Size: 54 KiB |
BIN
static/img/user-guide/backup/backup-running.png
Normal file
|
After Width: | Height: | Size: 48 KiB |
BIN
static/img/user-guide/backup/before-restore.png
Normal file
|
After Width: | Height: | Size: 64 KiB |
BIN
static/img/user-guide/backup/create-backup.png
Normal file
|
After Width: | Height: | Size: 68 KiB |
BIN
static/img/user-guide/backup/restore-complete.png
Normal file
|
After Width: | Height: | Size: 82 KiB |
BIN
static/img/user-guide/backup/restore-upload.png
Normal file
|
After Width: | Height: | Size: 75 KiB |
BIN
static/img/user-guide/backup/restore.png
Normal file
|
After Width: | Height: | Size: 71 KiB |
BIN
static/img/user-guide/backup/waiting-restart.png
Normal file
|
After Width: | Height: | Size: 48 KiB |