Update Seafile Server

Context
You would like to update the Seafile Server for RaspberryPi. First, do a full backup of the SD card and then proceed the update of the system.

Capture d’écran_2016-07-31_13-10-031. Shutdown the RaspberryPi and backup the SD card

sudo dd bs=4M if=/dev/sdf | gzip -9 > ./seafile-raspbian-$(date +"%d-%m-%Y").img.gz

2. Power on the RaspberryPi and upgrade Raspbian

sudo apt-get update && sudo apt-get dist-upgrade
sudo shutdown -r now

3. Stop Seafile Server

sudo /etc/init.d/seafile-server stop

4. Download the latest mature version and extract the package

cd /home/seafile/mycloud
sudo wget https://github.com/haiwen/seafile-rpi/releases/download/v4.4.6/seafile-server_stable_4.4.6_pi.tar.gz
sudo tar -zxvf seafile-server_stable_4.4.6_pi.tar.gz
sudo chown -R seafile:seafile seafile-server-4.4.6

5. Update each minor version

cd seafile-server-4.4.6/upgrade/
sudo ./upgrade_4.0_4.1.sh
sudo ./upgrade_4.1_4.2.sh
sudo ./upgrade_4.2_4.3.sh
sudo ./upgrade_4.3_4.4.sh

6. Start Seafile Server

/etc/init.d/seafile-server start

Capture d’écran_2016-07-31_13-11-39