Backup Script
The backup.sh script can be run from the root directory to back up all files and database data from your Squiz Matrix installation to a single tar.gz file.
This script is located in the /scripts directory of your Squiz Matrix system.
Tip: You can enter the optional argument --database-only to only backup the database data from your installation. This is useful if you already have another method of backing up your files.
A backup can then be restored at a later date as follows:
- Create a directory to be the root directory for the newly installed Squiz Matrix system.
- Unzip the tar.gz file inside the new root directory. This creates all the system files in the new root directory, along with a file of the following format containing the contents of the database:
data/matrix-YYYY-MM-DD-HHMMSS.dump - Import the data/matrix-YYYY-MM-DD-HHMMSS.dump file to your database.
- Update the following file in the new root directory for any required database configuration changes: data/private/conf/main.inc
- Run the system_move_update.php script if you have changed the path name of the system root.
For more information on this script, refer to the System Move Update Script chapter.