Skip to content

Commit ef08c70

Browse files
committed
docs: remove outdated cloud storage migration documentation
Remove documentation for cloud storage migration feature since the corresponding implementation in PR langgenius/dify#9532 was not merged into the main Dify codebase, making this documentation obsolete.
1 parent 244530a commit ef08c70

File tree

4 files changed

+3
-123
lines changed

4 files changed

+3
-123
lines changed

en/getting-started/install-self-hosted/install-faq.mdx

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -246,36 +246,6 @@ These IP addresses are _**examples**_, you must execute the command to get your
246246

247247
The API service port is consistent with the one used by the Dify platform. You can reassign the running port by modifying the `nginx` configuration in the `docker-compose.yaml` file.
248248

249-
### 22. How to Migrate from Local to Cloud Storage?
250-
251-
To migrate files from local storage to cloud storage (e.g., Alibaba Cloud OSS), you'll need to transfer data from the 'upload_files' and 'privkeys' folders. Follow these steps:
252-
253-
1. Configure Storage Settings
254-
255-
For local source code deployment:
256-
- Update storage settings in `.env` file
257-
- Set `STORAGE_TYPE=aliyun-oss`
258-
- Configure Alibaba Cloud OSS credentials
259-
260-
For Docker Compose deployment:
261-
- Update storage settings in `docker-compose.yaml`
262-
- Set `STORAGE_TYPE: aliyun-oss`
263-
- Configure Alibaba Cloud OSS credentials
264-
265-
2. Execute Migration Commands
266-
267-
For local source code:
268-
```bash
269-
flask upload-private-key-file-to-cloud-storage
270-
flask upload-local-files-to-cloud-storage
271-
```
272-
273-
For Docker Compose:
274-
```bash
275-
docker exec -it docker-api-1 flask upload-private-key-file-to-cloud-storage
276-
docker exec -it docker-api-1 flask upload-local-files-to-cloud-storage
277-
```
278-
279249
{/*
280250
Contributing Section
281251
DO NOT edit this section!

en/learn-more/faq/install-faq.mdx

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -252,37 +252,7 @@ This behavior helps reduce potential XSS attacks. For more information on CSP re
252252

253253
The API service port is consistent with the one used by the Dify platform. You can reassign the running port by modifying the `nginx` configuration in the `docker-compose.yaml` file.
254254

255-
### 23. How to Migrate from Local to Cloud Storage?
256-
257-
To migrate files from local storage to cloud storage (e.g., Alibaba Cloud OSS), you'll need to transfer data from the 'upload_files' and 'privkeys' folders. Follow these steps:
258-
259-
1. Configure Storage Settings
260-
261-
For local source code deployment:
262-
- Update storage settings in `.env` file
263-
- Set `STORAGE_TYPE=aliyun-oss`
264-
- Configure Alibaba Cloud OSS credentials
265-
266-
For Docker Compose deployment:
267-
- Update storage settings in `docker-compose.yaml`
268-
- Set `STORAGE_TYPE: aliyun-oss`
269-
- Configure Alibaba Cloud OSS credentials
270-
271-
2. Execute Migration Commands
272-
273-
For local source code:
274-
```bash
275-
flask upload-private-key-file-to-cloud-storage
276-
flask upload-local-files-to-cloud-storage
277-
```
278-
279-
For Docker Compose:
280-
```bash
281-
docker exec -it docker-api-1 flask upload-private-key-file-to-cloud-storage
282-
docker exec -it docker-api-1 flask upload-local-files-to-cloud-storage
283-
```
284-
285-
### 24. How to delete old logs and unused files to reduce storage usage?
255+
### 23. How to delete old logs and unused files to reduce storage usage?
286256

287257
Dify does **not** automatically delete old logs in database or unused files on storage. Instead, several commands are provided for instance administrators to **manually** delete old logs and unused files.
288258

ja-jp/learn-more/faq/install-faq.mdx

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -247,37 +247,7 @@ docker ps -q | xargs -n 1 docker inspect --format '{{ .Name }}: {{range .Network
247247

248248
API サービスのポートは、Dify プラットフォームで使用されるポートと一致します。`docker-compose.yaml` ファイルの `nginx` 設定を変更することで、実行中のポートを再指定することができます。
249249

250-
### 23. ファイルをローカルストレージからクラウドストレージに移行する方法
251-
252-
ファイルをローカルストレージからクラウドストレージ(例:Alibaba Cloud OSS)に移行するには、'upload_files'と'privkeys'ディレクトリからデータを移行する必要があります。以下の手順に従って操作してください:
253-
254-
1. ストレージ設定を構成する
255-
256-
ローカルソースコードデプロイメントの方法:
257-
- `.env`ファイルでストレージ設定を更新します
258-
- `STORAGE_TYPE=aliyun-oss`を設定します
259-
- Alibaba Cloud OSSの認証情報を設定します
260-
261-
Docker Composeデプロイメントの方法:
262-
- `docker-compose.yaml`ファイルでストレージ設定を更新します
263-
- `STORAGE_TYPE: aliyun-oss`を設定します
264-
- Alibaba Cloud OSSの認証情報を設定します
265-
266-
2. 移行コマンドを実行する
267-
268-
ローカルソースコードの場合:
269-
```bash
270-
flask upload-private-key-file-to-cloud-storage
271-
flask upload-local-files-to-cloud-storage
272-
```
273-
274-
Docker Composeの場合:
275-
```bash
276-
docker exec -it docker-api-1 flask upload-private-key-file-to-cloud-storage
277-
docker exec -it docker-api-1 flask upload-local-files-to-cloud-storage
278-
```
279-
280-
### 24. 古いログや未使用のファイルを削除し、ストレージの使用量を削減する方法
250+
### 23. 古いログや未使用のファイルを削除し、ストレージの使用量を削減する方法
281251

282252
Dify はデータベース上の古いログやストレージ上の未使用のファイルの自動的な削除は **行いません**。代わりに、インスタンスの管理者が古いログや未使用のファイルを **手動で** 削除できるように、いくつかのコマンドが用意されています。
283253

zh-hans/learn-more/faq/install-faq.mdx

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -252,37 +252,7 @@ docker ps -q | xargs -n 1 docker inspect --format '{{ .Name }}: {{range .Network
252252

253253
API 服务与 Dify 平台使用的端口号相一致。你可以通过修改 `docker-compose.yaml` 文件内的 `nginx` 配置项,重新指定运行端口。
254254

255-
### 23. 如何将文件从本地存储迁移到云存储?
256-
257-
要将文件从本地存储迁移到云存储(如阿里云 OSS),你需要从本地存储目录中的 'upload_files' 和 'privkeys' 文件夹迁移数据。请按照以下步骤操作:
258-
259-
1. 配置存储设置
260-
261-
对于本地源码部署方式:
262-
-`.env` 文件中更新存储设置
263-
- 设置 `STORAGE_TYPE=aliyun-oss`
264-
- 配置阿里云 OSS 凭证
265-
266-
对于 Docker Compose 部署方式:
267-
-`docker-compose.yaml` 文件中更新存储设置
268-
- 设置 `STORAGE_TYPE: aliyun-oss`
269-
- 配置阿里云 OSS 凭证
270-
271-
2. 执行迁移命令
272-
273-
对于本地源码:
274-
```bash
275-
flask upload-private-key-file-to-cloud-storage
276-
flask upload-local-files-to-cloud-storage
277-
```
278-
279-
对于 Docker Compose:
280-
```bash
281-
docker exec -it docker-api-1 flask upload-private-key-file-to-cloud-storage
282-
docker exec -it docker-api-1 flask upload-local-files-to-cloud-storage
283-
```
284-
285-
### 24. 如何删除旧日志和未使用的文件以减少存储使用量?
255+
### 23. 如何删除旧日志和未使用的文件以减少存储使用量?
286256

287257
Dify**不会**自动删除数据库中的旧日志或存储中的未使用文件。请参考以下命令**手动**删除旧日志和未使用的文件。
288258

0 commit comments

Comments
 (0)