CloudCX System Data Backup Guide

When CloudCX System needs to undergo a major version upgrade, it usually takes a relatively long time. To prevent upgrade issues caused by various factors during this period, such as sudden network disconnection, power outage, software compatibility issues, etc., we usually need to back up the data. Here are some common data backup methods.


Data backup necessitates a period of downtime for processing. Please ensure that you are adequately prepared prior to initiating the data backup.

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

Option1 — Backup uses Snapshot

Normally, this is the first choice for data backup, All cloud providers and virtualization platforms support the snapshot function, which can conveniently and quickly complete data backup work before a system upgrade, and data restoration is also very convenient.

Option2 — Backup using Local Disk/Portable hard disk

  1. Perform the following commands as root to stop & rm the current CX Docker instance:

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

If the CX system deployment mode is Distributed Deployment, we need perform above command son both system and midware to stop all of services.

  1. Compress CX data for backup - make sure server has enough disk size to store the new compressed files.

cd /opt/cloud_cx && tar -czvf cloudcx_bak_20241014.tar.gz ./
  1. Done!

Backup complete! Please choose whether to delete old backup data as needed.