KBEC-00467 - Back up and Restore DevOps Insight Server Data

Summary

You need to back up and restore your DevOps Insight Server data. This need may arise if you are migrating or reinstalling your DevOps Insight Server.

Solution

Back up data

  1. Stop the ‘commanderElasticsearch’ and ‘commanderLogstash’ (Linux) or ‘CloudBees CD Elasticsearch Service’ and ‘CloudBees CD Logstash Service’ (Windows) services

  2. Linux: Run

    sudo /etc/init.d/commanderElasticsearch stop
    sudo /etc/init.d/commanderLogstash stop
    
  3. Windows: Use Services window to stop services

  4. Back-up the data directory

  5. Linux: Run

    mv /path/to/datadirectory/ /otherpath/to/datadirectory-old/
    
  6. Windows: Use file explorer to relocate datadirectory folder (Located in C:\ProgramData\Electric Cloud\ElectricCommander by default)

  7. Uninstall DevOps Insight (For re-install)

Restore data

  1. Re-install DevOps Insight and use the same data directory path (For re-install)

  2. Stop the ‘commanderElasticsearch’ and ‘commanderLogstash’ (Linux) or ‘CloudBees CD Elasticsearch Service’ and ‘CloudBees CD Logstash Service’ (Windows) services

  3. Replace the existing data directory with the backup

  4. Linux: Run

    mv /path/to/datadirectory/ /path/to/datadirectory-old2/
    mv /otherpath/to/datadirectory-old/ /path/to/datadirectory/
    
  5. Windows: Use file explorer to restore datadirectory folder

  6. Start the ‘commanderElasticsearch’ and ‘commanderLogstash’ (Linux) or ‘CloudBees CD Elasticsearch Service’ and ‘CloudBees CD Logstash Service’ (Windows) services

  7. Linux: Run

    sudo /etc/init.d/commanderElasticsearch start
    sudo /etc/init.d/commanderLogstash start
    
  8. Windows: Use Services window to start services

Notes

  • the DevOps Insight Server is not recommended to be running on the same host as your CloudBees CD server.
  • Make sure to check that you have enough disk space available before backing up your data directory.

Have more questions?

0 Comments

Please sign in to leave a comment.