Migrate Analytics Data from OVA Version 3 to OVA Version 4

Back up analytics data in OVA version 3 and then populate the data after configuring OVA version 4 image.
Follow these steps:
  1. Back up the analytics data.
    1. Stop Portal and run the following command to copy analytics data to a tar file,
      analytics-data.tar,
      using a temporary container,
      temp-container.
      docker run -v portal_minio-volume:/opt/data -v <host-machine-backup-directory>:/backup --name temp-container ubuntu tar -cvf /backup/analytics-data.tar /opt/data
    2. Run the following command to remove the temporary container,
      temp-container
      :
      docker rm temp-container
  2. Copy the analytics data file,
    analytics-data.tar
    , to OVA version 4 and populate the volume,
    portal_minio-volume,
    with analytics data before starting Portal.
    1. Run the following command to create the volume,
      portal_minio-volume
      :
      docker volume create portal_minio-volume
    2. Run the following command to populate
      portal_minio-volume
      with analytics data:
      docker run -v portal_minio-volume:/opt/data -v <host-machine-backup-directory>:/backup --name temp-container bash -c "cd /opt && tar xvf /backup/analytics-data.tar --strip 1"
      where,
      <host-machine-backup-directory>
      is the directory where the analytics data file is available.
    3. Run the following command to remove the temporary container,
      temp-container
      :
      docker rm temp-container
    You can do other customizations, if any, and then start Portal.