10.15.3 Restoring a backup
If you need to restore a backup on a blank system, you first need to:
- Install MySQL and create the daisyrepository and activemq databases and database users (see install instructions)
- Download the Daisy version corresponding to the backup, and extract it somewhere. Define the DAISY_HOME environment variable to point to this location.
- Install Java and let JAVA_HOME point to the location of your Java installation.
These items are described in more detail in the installation instructions.
What you don't need to do is running the installation scripts (daisy-repository-init, daisy-wiki-init, daisy-wiki-add-site), as these only serve to initialiase the database and configuration files, and when restoring a backup this is not needed since all this data and configuration comes from the backup.
Once this is done, use the backup tool with the -r option as described earlier.