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
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
- Fetch the backup tar file and place it in a directory such as /home/user/backup.
-
Execute the mongo restore script as follows:
Example:./mongo_restore_ocp.sh <mongo backup tar filepath>./mongo_restore_ocp.sh /home/user/backup/mongo_backup_XX-XX-XX.tar.gz
Restoring Vault/Openbao Backup
- Fetch the backup tar file and place it in a directory such as /home/user/backup.
-
Execute the vault restore script as follows:
Example:../vault_restore_ocp.sh -p <vault backup tar filepath>./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.
