Skip to content

Upgrade (automatic)

squarerootfury edited this page Jan 26, 2014 · 5 revisions

Starting with 1.9.13-git-beta3-2, Redundancy has a built-in updater.

The updater is (like the complete program) still beta, so use with caution. The updater tries to udpate your installation, depending on your configuration situation, there could be problems while the update process. In this cases, you should update manually.

Requriements for updates

  • You are member of the administrative group
  • You made a backup (do it!)
  • Your PHP runs with a user which is allowed to write in the Redundancy-directory (Really. Check!)
  • You are using 1.9.12 or above (1.9.11 and previous does not work, because there are many kernel functions missing)
  • If you made any changes on the files (except configs), the changes will be overwritten because the updater can not detect them

Start the update

  1. Click on the dropdown menu which displays your name
  2. Click on administration
  3. Click on Info
  4. Click on start update at the bottom of the info screen

Update process

  • Any data requried for the update will be saved to the Temp directory. It's located per default in your installation path.
  • The database will be updated independent of the update of your files
  • Each file will be replaced except of

Redundancy.conf,DataBase.inc.php,/Storage/,/Temp/,/Snapshots/,/Documents/

  • New configuration values will be added at the end of your Redundancy.conf-file
  • The updater displays any problem which may encounter during the update process

Update of "End-of-Life" versions (1.9.11 and previous)

The update may fail. There is no guarantee that the update of EOL-version runs properly.

  1. Fetch the newest snapshot of the repository
  2. Replace the files inside Includes/Kernel/ to get the newest kernel functions
  3. Replace the files inside Language/ to get the needed language values
  4. Insert the file Includes/update.inc.php in your includes folder to get the updater
  5. Now open your browser on http://yourpathtoredundancy.tld/index.php?module=update
  6. Run the update process

{File} not copied to {file} - Error

Sometimes it can happen that the updater displays following error(s):

If error_reporting is enabled, there is following error:

Warning: copy(/upload2.inc.php): failed to open stream: Permission denied in /update.inc.php on line 179

If not, there is only following error:

/upload2.inc.php not copied /upload2.inc.php

This error can appear when PHP can't write the mentioned file to the target directory. To solve you can run a in the directory (or sub directory, depends on the error) to see the current permissions.

ls -la [...] -rwxr-xr-x 1 admin users 8912 Jan 18 15:26 upload2.inc.php To solve, change the base permissions for updating to the fitting value of your installation to allow the php installation to write on this file. Depending of the installation, the file may be written by a user like nobody, so he can't write to the file on the initial permissions.

After that, run the update again.

Clone this wiki locally