Backup and Restore

Version

  • Linux Control Center = 2.10.X or higher

Requirements

  • SSH access to the LCC Host with root user

Overview

  • This guide provides information and step-by-step instructions for backing up and restoring the LCC

Objective

  • Demonstrate the complete backup and restore process of the LCC through the CLI interface.

Default Backup Directory

Stopping Containers

  1. Before performing the backup, it is necessary to stop the LCC Container processes separately for greater data integrity.

  2. Container lcc_console Command: docker stop lcc_console

  3. Container lcc_worker Command: docker stop lcc_worker

  4. Container lcc_alert_report Command: docker stop lcc_alert_report

  5. See the example in the image below:

Backup Configuration Files

  1. This command backs up all files with the .yml extension that were generated during installation. These files are essential for LCC to work.

Command: lcc-cli backup -a

  1. The backup will be compressed in the tar.gz extension

Database Backup

  1. To back up the LCC database, run the command below;

Command: lcc-cli database --backup

  1. The backup will have the .sql extension with the date and time the backup creation command was executed.

Restoring Backup

  1. To restore the LCC, you must extract all Configuration Files to the system root directory / with the root user

Command: tar -xzvf file_name.tar.gz -C /

![](/pt-br/images/backup_and_restore/extracting_config.png)
  1. After extracting the files, run the command to restore the LCC from the .sql file created in the Database Backup step.

Command: lcc-cli database --restore file_name.sql

  1. Check if you are using the correct backup and confirm by typing y and pressing enter

Starting the Containers

  1. After the restoration is complete, run the commands to start the Containers.

  2. Container lcc_console Command: docker start lcc_console

  3. Container lcc_worker Command: docker start lcc_worker

  4. Container lcc_alert_report Command: docker start lcc_alert_report

  5. See the example in the image below:

  6. The LCC will be ready for use normally after the Containers are initialized.

Last updated