<< 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. Take the backup using the below command: 

    ./k8sbackupscript -p <Backup_File_Path>

     

     

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

      ./k8sbackupscript -h

       

       

  2. Stop all the CMS services

  3. Start MongoDB service using the below command:

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

       

  4. 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

       

       

  5. Start all the CMS services