Updated on 2024-10-15 GMT+08:00

Importing/Exporting Configurations

CSE Nacos supports configuration import and export.

Importing Configurations

  1. Log in to CSE.
  2. In the left navigation pane, choose Registry/Configuration Center.
  3. Click the target Nacos instance.
  4. In the left navigation pane, choose Configuration Management > Configurations.
  5. Click Import Configuration and set parameters by referring to the following table.

    Figure 1 Importing configurations

    Parameter

    Description

    Same Configuration

    • Terminate: If a configuration is the same as that in the system, the import terminates.
    • Skip: During import, if a configuration is the same as that in the system, the configuration is skipped and other configurations are imported.
    • Overwrite: During import, if a configuration is the same as that in the system, the value of the configuration will be replaced.

    Configuration File

    Click Import and select the target file.

    NOTE:

    The file size cannot exceed 2 MB. If the file is too large, divide it into smaller files and import them individually.

  6. Click Close.

    • If Same Configuration is Terminate, the Terminate dialog box will be displayed if a configuration is the same as that in the system during the import. Click OK to terminate the import.
    • If Same Configuration is Skip, the configuration that is the same as that in the system will be skipped during the import, and other configurations are imported. Then, a dialog box is displayed showing the imported configurations. Click OK.

Exporting Configurations

  1. Log in to CSE.
  2. In the left navigation pane, choose Registry/Configuration Center.
  3. Click the target Nacos instance.
  4. In the left navigation pane, choose Configuration Management > Configurations.
  5. Select the target configuration and click Export.

    • Click Export All to export all configurations.
    • You are advised to export the configurations separately to ensure that the size of an exported configuration file does not exceed 2 MB.
    Figure 2 Exporting configurations

  6. In the displayed dialog box, click Export.