From e85ec013da08581d82fad6d915e10ee1cf82440c Mon Sep 17 00:00:00 2001 From: Junxiang Huang Date: Tue, 1 Jul 2025 18:02:48 +0800 Subject: [PATCH] add backup operations before cleanning up redundant configurations items --- manual/upgrade/upgrade_docker.md | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/manual/upgrade/upgrade_docker.md b/manual/upgrade/upgrade_docker.md index 69025e2b..b5cb41aa 100644 --- a/manual/upgrade/upgrade_docker.md +++ b/manual/upgrade/upgrade_docker.md @@ -178,13 +178,23 @@ Seafile 13.0 add a new environment `SEAF_SERVER_STORAGE_TYPE` to determine the s ### Step 4) Remove obsolote configurations +Although the configurations in environment (i.e., `.env`) have higher priority than the configurations in config files, we recommend that you remove or modify the cache configuration in the following files to avoid ambiguity: -Although the configurations in environment (i.e., `.env`) have higher priority than the configurations in config files, we recommend that you remove or modify the cache configuration in the following files to avoid ambiguity:: +1. Backup the old configuration files: -- Open `/opt/seafile-data/seafile/conf/seafile.conf` and remove the entire `[memcached]`, `[commit_object_backend]`, `[fs_object_backend]` and `[block_backend]` if above sections have correctly specified in `.env`. -- Open `/opt/seafile-data/seafile/conf/seahub_settings.py` and remove the entire blocks for `DATABASES = {...}` and `CAHCES = {...}` + ```sh + # please replace /opt/seafile-data to your $SEAFILE_VOLUME -In the most cases, the `seafile.conf` only include the listen port `8082` of Seafile file server. + cp /opt/seafile-data/seafile/conf/seafile.conf /opt/seafile-data/seafile/conf/seafile.conf.bak + cp /opt/seafile-data/seafile/conf/seahub_settings.py /opt/seafile-data/seafile/conf/seahub_settings.py.bak + ``` + +2. Clean up redundant configuration items in the configuration files: + + - Open `/opt/seafile-data/seafile/conf/seafile.conf` and remove the entire `[memcached]`, `[commit_object_backend]`, `[fs_object_backend]` and `[block_backend]` if above sections have correctly specified in `.env`. + - Open `/opt/seafile-data/seafile/conf/seahub_settings.py` and remove the entire blocks for `DATABASES = {...}` and `CAHCES = {...}` + + In the most cases, the `seafile.conf` only include the listen port `8082` of Seafile file server. ### Step 5) Start Seafile