How to migrate sonar rules form one host to another host

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    Sonarqube 8.3
  • what are you trying to achieve
    Move sonar rules from old to new sonarqube hosts
  • what have you tried so far to achieve this

Is there any way to copy the sonar rules and DB from existing Sonarqube to latest Sonarqube version 8.3 on new host.

Below are the config details of old sonarqube.

  1. Sonarqube version: 6.7.1

  2. Default H2 DB.

  3. We added few rules during setup time on old sonarqube.

Please suggest.

Thanks

Hi,

There’s a reason you’re seeing a warning on every page of the SonarQube UI: H2 is provided for evaluation purposes only and is not supported in production. Among other things, that means you can’t migrate it from one version to another.

Normally the answer to your question would be: simply upgrade per the instructions and point the new instance at your database. But since you’ve been using H2, you’ll have to start from scratch. Sorry.

 
:woman_shrugging:
Ann