StaticSync

How to restore your ResourceSpace installation

Restoring ResourceSpace

If you have followed the guidance on backing up ResourceSpace as per How to backup your ResourceSpace installation, then restoring ResourceSpace to a replacement server in the event of server failure or for migration is straightforward.

Please note that steps described here simply restore your existing ResourceSpace configuration. The following related items are not covered by these steps

  • Custom ResourceSpace code
  • Any external directories that may be used by ResourceSpace e.g. StaticSync
  • DNS changes that may be required so that users can access the new server
  • Web or proxy server configuration

Requirements

To restore ResourceSpace to an new server you require the following:-

  • A full backup of the ResourceSpace database
  • A copy of the ResourceSpace filestore folder (e.g. /var/www/resourcespace/filestore)
  • A backup of your configuration file (located in include/config.php)
  • A server with ResourceSpace and dependencies installed

Restore steps

  1. Install ResourceSpace on the new server (see Installing and Upgrading)
  2. Create an empty database on the new server and import the database backup into it1
  3. Copy the filestore backup into the new ResourceSpace filestore2
    e.g. /var/www/resourcespace/filestore/
  4. Copy any settings from your config.php file across. If you copy the whole file be aware that the new server may have different settings e.g. MySQL usernames/passwords and installation location of third party utilities such as ImageMagick or FFmpeg.
  5. The following settings are crucial for ResourceSpace to find the filestore and for remote API calls to work:-
    • $scramble_key
    • $api_scramble_key

1 To prevent character encoding issues causing international characters from either being omitted or appearing corrupted, ensure that the database and connection encodings and collations used on the new server match the original. UTF-8 encoding is strongly recommended

2 If you have backed up the entire ResourceSpace directory you can simply restore this into the new web server location. In this case you need to check permissions and any server specific settings in config.php