Seafile-Server-Upgrade on a Beaglebone / Raspberry

You are here

Seafile is an open-source cloud solution and on a BeagleBone or Raspberry a really good alternative to OwnCloud (see the article OwnCloud alternative with Seafile and Baikal ).
Seafile is now running on my BeagleBone Black for a few months and I must say that it is working very reliable since now. Meanwhile, around 600 GB of data are in the cloud and I have found no problems yet.

Now for the first time an update needs to done due to version 3.1.4 and it has really paid off: server and client start much faster and they are also synchronized much faster. So really a real benefit.

Here are the steps to perform the update. The version numbers and the path to Seafile installation of course may differ.

Step 1
Stop Seafile and become Seafile-User. When installing Seafile it is recommended to create a separate user to run Seafile-Server. This prevents, that Seafile works with root privileges.
The following steps should now be done with the privileges of Seafile-user so that file and directory rights are correctly set after the upgrade. But this is not necessarily mandatory (see last step).

sudo su - Seafile-User

Step 2
In any case, first save the old installation!

cp -r /home/seafile /home/bup_seafile

If you now go into the seafile directory and make a listing it should look like this:

In this case the script "upgrade_3.0_3.1.sh" must be used. Important
If you have missed a few updates, and you go from version 2.x or even from version 1.x, you must run all intermediate scripts from your Version on.
If you upgrade from version 3.1.2 to version 3.1.4, only the script "minor-upgrade.sh" must be performed.
The output of the script should look like this: