<< PREVIOUS  NEXT >>

 

CMS DATABASE BACKUP AND RESTORE


 

NOTE:

The provided scripts are applicable for the entire MongoDB instance, irrespective of any databases present in it

 

CONTAINERS

 

Execute the below commands for CMS DB backup and restore for containers:

  1. Log in to the Artifactory site using Virsec-provided credentials from the local machine

  2. Navigate to the directory vsp > cmsutils > ReleaseNumber > shellscripts

  3. Download the file mongoBackupRestore.zip. Unzip the file

    image11

  4. Take the backup using the below command: 

    ./k8sbackupscript -p <Backup_File_Path>

     

     

    1. To view the help menu, execute the below command:

      ./k8sbackupscript -h

       

       

  5. Stop all the CMS services

  6. Start MongoDB service using the below command:

    1. kubectl apply -f <CMS_Installation_Directory>/cms_serviceperpod/infra/vsp_mongo.yaml

       

  7. Restore the backup using the below command:

    ./k8sRestoreScript.sh -b <Backup_File_Path/Filename>

     

    1. To view the help menu, execute the below command:

      ./k8sRestoreScript.sh -h

       

       

  8. Start all the CMS services