Testing ownCloud

Everyone wants your data..

and there are many ways to loose control of it. One way to start to protect them is to kep them at home and not to distribute them to companies that potentially will make use of them. Until data is not encrypted you never can’t be sure if your data is on any company solution be safe đŸ˜‰

So I start to experiment a bit with ownCloud on my openmediavault NAS. Good message is, it is just some clicks away that you can start. Bad message is, that currently only version 6.0 is running. So you can’t get benefit out of the evolution in terms of functionality or other improvements till version 9.1.

What is required is to spend some time to bring yourself the version up to 9.1. This will be done by stepwise migrate from 6.0 to 9.1 within 6 steps doing always the same.

Preparation

  1. Download all version listed here to a dedicated directory.
  2. Study the upgrade documentation of version 7.0

Logical you need to do always the same:

$ ssh <owncloud server>cd /var/www/mv owncloud to owncloud-<current-version>
$ tar xif <location of the downloaded archiv of the next version>
$ cp owncloud-<current-version>/config/config.php owncloud/config/config.php
$ mv owncloud-<current-version>/data owncloud
$ cd owncloud
$ sudo -u www-data php occ maintenance:mode --on
$ service nginx restart
$ sudo -u www-data php occ upgrade
$ sudo -u www-data php occ maintenance:mode --off

Once in between the version the instanceid format and you have to add an “oc” at the beginning to make it work again. You have to add this manually config.php.

e.g. 'instanceid' => 'oc8c0fd71e03',

Last step is to move the SQlite db to MySQL for performance reasons.

This is done, by installing MySQL via openmediavault following by create a database, a user and finally start the migration script from ownCloud.

$ sudo -u www-data php occ db:convert-type --all-apps mysql <mysql database user> 127.0.0.1 new_db_name

A good description for this procedure is here (German).

Update 23.10.2016: After moving to OMV 3.0 I decided to remove the test version of owncloud and set it up from scratch. Good was that I remembered a description to install ownCloud from scratch I found some time ago. Let’s see how the installation will perform in comparison to the old one.