You can create a backup copy of DCImanager 6 that contains all the settings of the platform. The backup copy is saved in .tar archive format and contains the following files:

  • config.json — platform configuration file;
  • docker-compose.yaml — Docker configuration file;
  • dci_dump.sql — platform database dump file.

Copy names have the format YYYY_MM_DD__HH_MM.tar.gz.

YYYY_MM_DD — creation date

HH_MM — creation time

Note

The backup copy does not contain statistics data.

Backup creation and restoring from backup are performed by the dci platform installation service. If DCImanager 6 is not installed or damaged on the server to be recovered, the service will install the platform and then restore data from the backup.

After restoring from a backup, activate the platform license. For Infrastructure version, activation has to be performed within seven days after the restore. After this period expires, the platform will be blocked.

Creating backups


In the console

To create a backup:

  1. Connect to DCImanager 6 server via SSH and enter the command:

    dci backup
    CODE
  2. Enter the password for the backup archive or press Enter to create an archive without a password.

The copy will be saved to /opt/ispsystem/dci/backup/.

You can configure automatic backups. For more details see the knowledge base article How to configure automatic backups with bash script?

In the platform interface

You can set up autosave for backups on external storage or on the platform server. If local storage is selected, the platform will save copies in the opt/ispsystem/dci/backup/ directory. We recommend that you save backups to external storage, as the backup files can be damaged if there are problems with the platform server.

If you are using a storage with an FTP connection, check the validity of the SSL certificate at the domain name of the FTP server. If the certificate is invalid, the platform will not be able to save the backup.

If you are using an NFS storage, follow the instructions to enable support for this type of storage.

To set up a backup schedule, go to → Database backup → Add schedule:

  1. Select when to Make copies:
    • Daily;
    • Weekly → select the day;
    • Monthly → enter the date from 1 to 28 → Apply;
    • enter the time in the cron scheduler format. For example, 15 10 * * 0 — create backups on Sundays at 10:15 UTC or 00 12 1,16 * * — create backups on the 1st and 16th of the month at 12:00 UTC.
  2. Enter the UTC time at which platform will start backup creation.
  3. Specify the schedule Name. By default, platform creates a schedule with the name corresponding to the schedule settings. For example, "Daily at 0:00 through SSH".
  4. Specify the discretionary Note to the schedule.
  5. Select the storage for backups: external storage with connection through SSH, FTP, NFS, SMB, or save backups Locally.
  6. If you are using external storage, specify its settings:

    • FTP or SSH:

      1. IP address or domain name;
      2. Port;
      3. Login;
      4. Password or press I want to use public SSH-key to configure an SSH key connection;
      5. Path to storage — the directory on the server to which platform will save backups.
    • NFS:
      1. Network path to storage in the format <IP address of the NFS-server>:/<directory for backups>. For example, 192.168.0.1:/mnt.
    • SMB:
      1. Storage IP address.
      2. Path to storage in the format \<network resource name>\<directory for backups>\. For example, \share\backup\.
      3. Login and Password. If the connection does not require authentication, enable the Anonymous login option.
  7. Press Add.

You can manage the created schedules through the  menu in Settings → Database backup. Possible actions with schedule:

  • Run the schedule — start backup creation process immediately;
  • Edit;
  • Enable/Disable;
  • Note — add note;
  • Delete.

Also in this section you can download the last five backups.

 

Database backup section

Recovery from a backup


If DCImanager 6 is not installed on the server

  1. Generate a new token in your client area eu.ispsystem.com.
  2. Connect to the server via SSH.
  3. Update the operating system to the latest stable version.
  4. If tar archiver or curl utility are not installed on the system, install them.
  5. Download the installer:

    curl -O https://download.ispsystem.com/6/dci/dcibox/dci
    CODE
  6. Make the installer file executable:

    chmod +x dci
    CODE
  7. Create the directory /opt/ispsystem/license/
    mkdir -p /opt/ispsystem/license
    BASH
  8. Start the recovery:

    ./dci restore -b=<backup_file>
    CODE

    <backup_file> — absolute path to the backup file. For example, /opt/ispsystem/vm/backup/2022_03_30__00_00.tar.gz

  9. If necessary, enter the backup archive password.
  10. In DCImanager 6 interface, go to System information.

  11. In the License key field enter the value of the license token.
  12. Click the Activate button.

If DCImanager 6 is installed on the server

  1. Generate a new token in your client area eu.ispsystem.com.
  2. Connect to the server via SSH.
  3. Update the operating system to the latest stable version.
  4. If the tar archiver is not installed on the system, install it.
  5. Start the recovery:

    dci restore -b=<backup_file>
    CODE

    <backup_file> — absolute path to the backup file. For example, /opt/ispsystem/vm/backup/2022_03_30__00_00.tar.gz

  6. If necessary, enter the backup archive password.
  7. Go to the directory with the license files: 

    cd /opt/ispsystem/license
    BASH
  8. Delete all files from the directory except machine_id

    rm -v !("machine_id")
    BASH
  9. In DCImanager 6 interface, go to System information.

  10. In the License key field enter the value of the license token.
  11. Click the Activate button.