<< PREVIOUS  NEXT >> 

 

VM-BASED ENVIRONMENT

 

Execute the below commands for CMS DB backup and restore in VM-based environments:

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

  2. Navigate to the directory cmsbase > utils > ReleaseNumber > shellscripts

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

    image11

  4. Take the backup using the below command:

    ./VM-BackupAndRestoreScript.sh -p <Backup_File_Path>

     

  5. Stop all the CMS services using the command:

    ./stop.sh

     

  6. Start only the MongoDB service using the command:

    docker-compose -f <CMS_Installation_Directory>/docker-compose-files/docker-compose-cms.yaml up -d --no-deps vsp-mongo

     

  7. Restore the backup using the below command:

    ./VM-BackupAndRestoreScript.sh -b <Backup_File_Path/Filename>

     

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

    ./VM-BackupAndRestoreScript.sh -h

     

  9. Stop the Mongo service using the command:

    ./stop.sh

     

  10. Start all the CMS services using the command:

    ./start.sh

     

 

<< PREVIOUS  NEXT >>