The article contains instructions on how to migrate the platform to another server. If the platform and the location are on the same server, the location will be migrated along with the platform.
If you need to migrate the location to a new server, follow the steps in the knowledge base article If you need to reinstall the OS or replace the location server.
Migration steps
To migrate DCImanager 6 to a new server:
- Generate a new token in your client area eu.ispsystem.com.
- On the source server:
-
Perform a backup:
dci backup
The backup will be saved in the directory/opt/ispsystem/dci/backup.
-
Stop the DCImanager 6 service:
dci down
-
Transfer the archive file to the destination server:
rsync -avzP /opt/ispsystem/dci/backup/<archive_file_name> user@1.2.3.4:/root/
CommentsNoteThe rsync utility must be installed on both the source and destination server.
-
- On the destination server:
- Connect to the server via SSH with superuser permissions (root by default).
-
Download the installer:
curl -O https://download.ispsystem.com/6/dci/dcibox/dci
-
Make it executable:
chmod +x dci
-
Start the recovery:
./dci restore -b /root/<имя_файла_архива>
CommentsNoteBe sure to specify the full path to the archive file. -
When the installation is complete, move the /opt/ispsystem/dci/clickhouse_storage directory from the source server:
rsync -avzP user@1.2.3.4:/opt/ispsystem/dci/clickhouse_storage /opt/ispsystem/dci
Comments -
Make the installer a service:
./dci make-service
-
In the DCImanager 6 interface:
-
In the right menu click → System information.
- In the License key field enter the value of the license token.
- Click the Activate button.
-
- If patches were applied to the platform:
- Move the patch files to the destination server.
-
For each patch, run the command on the destination server:
dci add-patch -f <path_to_patch> -p <patch_name>
Comments to the command
- If the migration was successful, remove the platform from the source server:
-
Stop DCImanager 6 service and disable it:
systemctl stop dci.service
systemctl disable dci.service
-
Delete the information about the platform operation:
rm /opt/ispsystem/dci -rf
-
Remove the installed docker images and containers:
docker system prune -a -f
-