Do we need to restore data and extensions folder contents from previous deployment?

We are interested in knowing if the folders “extensions” and “data” within /opt/sonarqube are re-generated during new deployment. Should new deployment require(s) files from “extensions” and “data” folder to be restored from previous deployment?


Your data directory is where the Elasticsearch indices are stored. If they’re not present, the indexes will automatically be re-generated. But you can configure the use of a directory outside $SONARQUBE-HOME and re-use the indexes from version to version.

The extensions directory will be re-generated during a new deployment.