Data migration from embedded to external databases in HUMMIX On-Premises: customized utility

You can migrate data from databases within a Kubernetes cluster to external storages using:

The main steps of data migration using hummix-Backupper utility:

  1. Back up databases.
  2. Update HUMMIX application parameters.
  3. Restore databases.

Attention

After migrating databases to external storages, system reactivation is required.

Step 1: Back up databases

  1. Install the hummix-Backupper utility and set up its configuration. Read more about it in the Back up and recover databases article.
  2. Back up the HUMMIX application databases:

hummix-backupper backup <<db-type>>

Where <<db-type>> is the name of the database that you want to back up. Value options:

  • mongo specifies MongoDB.
  • postgres specifies PostgreSQL.
  • s3 specifies S3 storage.
  • all specifies all databases (MongoDB, PostgreSQL, S3).
     
    To specify two databases, you can combine the mongo, postgres, and s3 values by separating them with commas. For example, postgres,s3 or mongo,postgres.

Step 2: Update HUMMIX application parameters

  1. Since the hummix-Backupper utility gets the database path settings from the values-hummix.yaml configuration file, specify the values of external storages in this file.
  2. Update the HUMMIX application parameters using the values-hummix.yaml configuration file.

Updating parameters via the Internet

Updating parameters without the Internet connection

Step 3: Restore databases

  1. Restoring from backup should be done to empty databases and S3 storage. So clean them with the --cleanup-databases key.
  2. Restore the databases from the last backup:

hummix-backupper restore <<db-type>>

Where <<db-type>> is the name of the database for which you want to get a list of backups. Value options:

  • mongo specifies MongoDB.
  • postgres specifies PostgreSQL.
  • s3 specifies S3 storage.
  • all specifies all databases (MongoDB, PostgreSQL, S3).
     
    To specify two databases, you can combine the mongo, postgres, and s3 values by separating them with commas. For example, postgres,s3 or mongo,postgres.
  1. Reactivate the system.