Migrating Data from On-Premise to OCP

To migrate on-premise data to OCP, the following backups must be available for restoration in the OCP environment:

  • Mongo Database Backup
  • Vault/Openbao Backup

After completing the restoration, data migration needs to be triggered, which is managed as part of the avx-app installation, as described in earlier chapters.

Prerequisites for Restoring Data

The scripts provided by AppViewX for restoring data from on-premise to OCP must be executed from an environment or VM with kubectl admin access to the OCP cluster. This access is essential to perform the required operations for copying data and initiating the restore process.

Restoring Mongo Backup

To restore the mongodb backup
  1. Fetch the backup tar file and place it in a directory such as /home/user/backup.
  2. Execute the mongo restore script as follows:
    ./mongo_restore_ocp.sh <mongo backup tar filepath>
    Example:
    ./mongo_restore_ocp.sh /home/user/backup/mongo_backup_XX-XX-XX.tar.gz

Restoring Vault/Openbao Backup

To restore the vault/openbao backup
  1. Fetch the backup tar file and place it in a directory such as /home/user/backup.
  2. Execute the vault restore script as follows:
    ../vault_restore_ocp.sh -p <vault backup tar filepath>
    Example:
    ./vault_restore_ocp.sh -p /home/user/backup/vault_backup_XX-XX-XX.tar.gz

Post Backup Actions

After the data restoration is complete, the data migration process must be initiated. This step is automatically handled during the installation of the avx-app.

Note:
  • If the avx-app is already installed, it can be upgraded/re-synced, so that the migrations run on the newly restored data.