Skip to content

Commit 50d883b

Browse files
committed
2.6.2:重构Docker运行架构;新增上传时目录自动建议功能
1 parent 2db25ba commit 50d883b

File tree

2 files changed

+8
-20
lines changed

2 files changed

+8
-20
lines changed

README.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
> ### 升级前:备份数据
6767
>
6868
> 1. 备份数据:在管理面板下载备份文件(若原来使用本地R2存储需要全部下载重传)
69+
> 2. 备份data文件夹
6970
>
7071
> ### 升级步骤
7172
>
@@ -91,7 +92,7 @@
9192
>
9293
> 4. 恢复数据:在管理面板恢复全部数据(原来的R2文件需要重传)
9394
>
94-
> ### 升级异常:恢复数据
95+
> ### 升级异常:回退版本
9596
>
9697
> 如果升级后出现异常,可通过以下步骤回退:
9798
>
@@ -101,14 +102,7 @@
101102
> docker compose down
102103
> ```
103104
>
104-
> 2. 恢复备份数据(将 `20260304` 替换为你实际的备份日期):
105-
>
106-
> ```bash
107-
> rm -rf ./data
108-
> cp -r ./data_backup_20260304 ./data
109-
> ```
110-
>
111-
> 3. 回退到旧版本镜像:
105+
> 2. 回退到旧版本镜像:
112106
>
113107
> ```bash
114108
> # amd64
@@ -124,7 +118,7 @@
124118
> ```
125119
>
126120
> **注意事项**
127-
> - 升级前请务必确认备份完整
121+
> - 升级前请务必确认备份完整,必要时备份一份data文件夹
128122
> - 如果你使用了自定义的 `docker-compose.yml` 配置(如自定义端口、环境变量等),升级时请注意保留
129123
> - 遇到问题请先查阅文档和已有 issues,或提交新的 issue
130124

README_en.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
> ### Before Upgrading: Back Up Data
6161
>
6262
> 1. Back up data: Download the backup file from the admin panel (if you were using local R2 storage, you need to download and re-upload all files)
63+
> 2. Back up the data folder
6364
>
6465
> ### Upgrade Steps
6566
>
@@ -85,7 +86,7 @@
8586
>
8687
> 4. Restore data: Restore all data from the admin panel (R2 files from the old version need to be re-uploaded)
8788
>
88-
> ### Rollback: Restore Data
89+
> ### Rollback to Previous Version
8990
>
9091
> If something goes wrong after upgrading, follow these steps to roll back:
9192
>
@@ -95,14 +96,7 @@
9596
> docker compose down
9697
> ```
9798
>
98-
> 2. Restore the backup (replace `20260304` with your actual backup date):
99-
>
100-
> ```bash
101-
> rm -rf ./data
102-
> cp -r ./data_backup_20260304 ./data
103-
> ```
104-
>
105-
> 3. Pull the previous image version:
99+
> 2. Pull the previous image version:
106100
>
107101
> ```bash
108102
> # amd64
@@ -118,7 +112,7 @@
118112
> ```
119113
>
120114
> **Notes**:
121-
> - Make sure the backup is complete before upgrading
115+
> - Make sure the backup is complete before upgrading, and back up the data folder if necessary
122116
> - If you have a custom `docker-compose.yml` (e.g., custom ports, environment variables), preserve those settings during the upgrade
123117
> - For issues, please check the documentation and existing issues first, or submit a new issue
124118

0 commit comments

Comments
 (0)