System Move Update Script
The system_move_update.php script is a simple script to be run after the system root path name has been changed, for example when restoring from a backup or migrating your Squiz Matrix installation to a new server.
This script is located in the /scripts directory of your Squiz Matrix system and takes the following parameters:
- The current system root directory.
You will also be prompted for the full path of the old system root when this script is run (e.g. /var/www/matrix_old_path).
Tip: You should delete all existing HIPO Jobs to stop errors after the move.
Example
To determine whether or not this script needs to be run, verify that the directories of the FFV files on your system correspond with the current installation path.
$ find data/private/assets -path '*/.FFV/*' -exec grep ^dir= {} \; | sort | uniq -c
7754 dir="/var/www/matrix_old_path/data/file_repository"
In the above example, the returned dir line indicates the old installation path is still being used for these files; the system_move_update.php script must be run to correct this error.
$ sudo -u apache php system_move_update.php [system_root] Enter the old System Root : /var/www/matrix_old_path
Confirm "/var/www/matrix_old_path" (Y/N) : Y
------------------------------------
OLD : /var/www/matrix_old_path/data/file_repository
NEW : /var/www/matrix/data/file_repository
------------------------------------
File : /var/www/matrix/data/private/assets/content_type_nest_content/0004/3793/.sq_system/.object_data
File : /var/www/matrix/data/private/assets/content_type_nest_content/0014/4046/.sq_system/.object_data
File : /var/www/matrix/data/private/assets/content_type_nest_content/0016/4066/.sq_system/.object_data
File : /var/www/matrix/data/private/assets/content_type_nest_content/0016/4048/.sq_system/.object_data
File : /var/www/matrix/data/private/assets/content_type_nest_content/0012/4134/.sq_system/.object_data
File : /var/www/matrix/data/private/assets/content_type_nest_content/0012/4044/.sq_system/.object_data
File : /var/www/matrix/data/private/assets/content_type_nest_content/0012/4080/.sq_system/.object_data
File : /var/www/matrix/data/private/assets/paint_layout_bodycopy/0008/3788/.sq_system/.object_data
File : /var/www/matrix/data/private/assets/bodycopy/0004/3784/.sq_system/.object_data
File : /var/www/matrix/data/private/assets/bodycopy/0003/5790/.sq_system/.object_data
File : /var/www/matrix/data/private/assets/bodycopy/0003/314085/.sq_system/.object_data
File : /var/www/matrix/data/private/assets/bodycopy/0014/3119/.sq_system/.object_data
[...]