The article describes transferring existing platforms and locations to a different operating system with data preservation. The instructions are suitable, in particular, for migration from an unsupported OS.
For the transfer, you will need temporary storage for the platform and location files. For example, cloud storage or an external hard drive.
Backing up the platform and required directories
To transfer the platform:
- Connect to the server with the platform via SSH. For more information about connecting via SSH, see Workstation setup.
-
If the tar archiver or curl utility is not installed on the system, install them:
apt install tar curl
-
Perform the backup:
dci backup
The backup will be saved in the /opt/ispsystem/dci/backup directory. Before backing up, ensure sufficient free space is available on the disk partition containing the /tmp directory. For information on determining required free space, see the article Creating platform backups.
-
Stop the DCImanager 6 service:
dci down
- Move the backup file to any external storage:
Example command for uploading to an external drivemv /opt/ispsystem/dci/backup/<backup_file_name> /media/<hard_drive>/.
CommentsExample command for uploading to an FTP servercurl -T /opt/ispsystem/dci/backup/<backup_file_name> -u "user:password" sftp://<ftp.example.com>/<file_path>/
Comments - If a location is also installed on the platform server, and you use any templates besides those from the ISPsystem repository, create a backup of the /opt/ispsystem/dci/os_templates/ directory according to the instructions in the Transferring a location section.
- Create a backup of the /opt/ispsystem/dci/clickhouse_storage directory:
tar -cvzf /opt/ispsystem/dci/clickhouse_storage.tar.gz /opt/ispsystem/dci/clickhouse_storage
- Move the /opt/ispsystem/dci/clickhouse_storage.tar.gz archive to external storage.
- Install a new OS on the server.
Restoring the platform after installing a new OS
- Generate a new license token.
You can do this in the my.ispsystem.com personal account or contact technical support.
- Connect to the platform server via SSH. For details about SSH connection, see the article Setting up a workstation.
- Update the operating system to the latest stable version:
sudo apt update && sudo apt upgrade -y
- If the tar archiver or curl utility is not installed on the system, install them:
apt install tar curl
-
Download the installer:
curl -O https://download.ispsystem.com/6/dci/dcibox/dci
-
Make the installer file executable:
chmod +x dci
-
Start the restoration:
./dci restore -b=<backup_file>
- If the backup archive is password-protected, enter it.
-
Restore the /opt/ispsystem/dci/clickhouse_storage directory:
- Comments
Transfer the clickhouse_storage.tar.gz archive from external storage to the platform server:
Example command for downloading from an external drivemv /media/<hard_drive>/clickhouse_storage.tar.gz /opt/ispsystem/dci/backup/.
CommentsExample command for downloading from an FTP servercurl -o "/opt/ispsystem/dci/clickhouse_storage.tar.gz" -u "user:password" sftp://<ftp.example.com>/<file_path>/clickhouse_storage.tar.gz
Comments - Extract the downloaded file:
tar -xvzf /opt/ispsystem/dci/clickhouse_storage.tar.gz
-
- If the server's domain name has changed:
- Specify the new domain name in the
DomainName
parameter of the /opt/ispsystem/dci/config.json file - Restart the platform:
dci restart
- Specify the new domain name in the
- Activate the license:
- In the DCImanager 6 interface, go to
→ System Overview.
- In the License key field, enter the license token.
- Click the Activate button.
- In the DCImanager 6 interface, go to
Transferring a location
- Connect to the location server via SSH. For more information about connecting via SSH, see Workstation setup.
- If you use any templates besides those from the ISPsystem repository:
- Create a backup of the /opt/ispsystem/dci/os_templates/ directory:
tar -cvzf /opt/ispsystem/dci/os_templates.tar.gz /opt/ispsystem/dci/os_templates/
- Transfer the /opt/ispsystem/dci/os_templates.tar.gz archive to external storage:
Example command for uploading to an external drivemv /opt/ispsystem/dci/os_templates.tar.gz /media/<hard_drive>/.
CommentsExample command for uploading to an FTP servercurl -T /opt/ispsystem/dci/os_templates.tar.gz -u "<user:password>" sftp://<ftp.example.com>/<file_path>/
Comments
If you use only templates from the ISPsystem repository, there is no need to back up the /opt/ispsystem/dci/os_templates/ directory. - Create a backup of the /opt/ispsystem/dci/os_templates/ directory:
- Install a new OS on the server.
- If you backed up the /opt/ispsystem/dci/os_templates directory, restore it:
- Transfer the os_templates.tar.gz archive to the location server from storage:
Example command for downloading from an external drivemv /media/<hard_drive>/os_templates.tar.gz /opt/ispsystem/dci/backup/.
CommentsExample command for downloading from an FTP servercurl -o "/opt/ispsystem/dci/os_templates.tar.gz" -u "<user:password>" sftp://<ftp.example.com>/<file_path>/os_templates.tar.gz
Comments - Extract the downloaded file:
tar -xvzf /opt/ispsystem/dci/os_templates.tar.gz
- Transfer the os_templates.tar.gz archive to the location server from storage:
Related topics:
Knowledge base articles: