Upgrade manual

    Please check the for any special configuration or changes before/while upgrading.


    Suppose you are using version 4.3.0 and like to upgrade to version 5.0.0. First download and extract the new version. You should have a directory layout similar to this:

    Now upgrade to version 5.0.0.

    1. Shutdown Seafile server if it’s running

      1. ./seahub.sh stop
      2. ./seafile.sh stop
      3. # or via service
      4. /etc/init.d/seafile-server stop
    2. Check the upgrade scripts in seafile-server-5.0.0 directory.

      1. cd haiwen/seafile-server-5.0.0
      2. ls upgrade/upgrade_*

      You will get a list of upgrade files:

      1. ...
      2. upgrade/upgrade_4.0_4.1.sh
      3. upgrade/upgrade_4.2_4.3.sh
      4. upgrade/upgrade_4.3_4.4.sh
      1. upgrade/upgrade_4.3_4.4.sh
      2. upgrade/upgrade_4.4_5.0.sh
    3. Start Seafile server

    4. If the new version works fine, the old version can be removed

      1. rm -rf seafile-server-4.3.0/

    Suppose you are using version 5.0.0 and like to upgrade to version 5.1.0. First download and extract the new version. You should have a directory layout similar to this:

    1. haiwen
    2. -- seafile-server-5.0.0
    3. -- seafile-server-5.1.0
    4. -- ccnet
    5. -- seafile-data

    Now upgrade to version 5.1.0.

    1. Shutdown Seafile server if it’s running

      1. cd haiwen/seafile-server-5.0.0
      2. ./seahub.sh stop
      3. ./seafile.sh stop
      4. /etc/init.d/seafile-server stop
    2. Check the upgrade scripts in seafile-server-5.1.0 directory.

      1. cd haiwen/seafile-server-5.1.0
      2. ls upgrade/upgrade_*
    3. Start from your current version, run the script(s one by one)

      1. upgrade/upgrade_5.0_5.1.sh
    4. Start Seafile server

      1. cd haiwen/seafile-server-5.1.0/
      2. ./seafile.sh start
      3. ./seahub.sh start # or "./seahub.sh start-fastcgi" if you're using fastcgi
      4. # or via service
      5. /etc/init.d/seafile-server start
    5. If the new version works, the old version can be removed

      1. rm -rf seafile-server-5.0.0/

    A maintenance upgrade is for example an upgrade from 5.1.2 to 5.1.3.

    1. Shutdown Seafile server if it’s running

    2. For this type of upgrade, you only need to update the symbolic links (for avatar and a few other folders).
      A script to perform a minor upgrade is provided with Seafile server (for history reasons, the script is called minor-upgrade.sh):

      1. upgrade/minor-upgrade.sh
    3. If the new version works, the old version can be removed