Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info

When migrating the CloudCX Application for any reason, it is essential to review this document beforehand to maintain data integrity. The subsequent sections offer comprehensive insights into the necessary preparations and implementation steps.

...

Info

The file paths operated by the following commands are all sample paths. Please replace them with the actual installation path when implementing them

Preparation work

  1. Perform the following commands as root to stop & rm the current CX Docker instance on an older machine (Name as A):

Bash
cd /opt/cloud_cx && /bin/sh cloud_cx_ctl.sh stop
cd /opt/cloud_cx && /bin/sh cloud_cx_ctl.sh rm

...

You can execute the following command on Server-A to view the basic space occupied by the current CX service data.

Bash
cd /opt && du -sh cloud_cx

  1. Compress CX data on Server-A to prepare for migration - make sure Server-A has enough disk size to store the new compressed files.

Bash
cd /opt/cloud_cx && tar -czvf cloudcx_bak_20241014.tar.gz ./

...

The following will use the scp command as an example to illustrate.

Start migration

1. Create the same CX service installation path on Server-B as on Server-A

Bash
mkdir /opt/cloud_cx

2. Enter the installation path in Server-B and start copying backup files

Bash
cd /opt/cloud_cx && scp root@{{server-A-ip}}:/opt/cloud_cx/cloudcx_bak_20241014.tar.gz .

3. Decompress the backup file under the installation path of Server-B

Bash
cd /opt/cloud_cx && tar -vxf cloudcx_bak_20241014.tar.gz

4. Run the script on Server-B to start restoring data and services

Bash
cd /opt/cloud_cx && /bin/sh install_docker_cx.sh

cd /opt/cloud_cx && docker compose up -d

5. Done!

Migration has been successfully completed! We invite you to review the updated situation.

...