Copying data between SonarQube Environments

Versions:

  • SonarQube Enterprise 8.9.5

Hello,

I am working on upgrading SonarQube from 8.9.5 to 9.9 LTS. I am working on setting up a test environment to stage the upgrade and am currently in the process of copying the data from our production environment to the new staging environment. The production environment is an azure-managed postgres database, and the test environment is a self-hosted postgres database.

I saw the SonarQube db copy tool in the docs and wasn’t sure if that tool necessarily applies to this scenario since they are both technically postegres databases. I was wondering if anyone has suggestions on how to copy the data over between environments? Thanks in advance!

Hi,

No need to use the DB copy tool. As you noted, that’s for switching DB engines.

All you have to do is back up your prod env and restore that backup in your test DB. You should be good to go from there.

 
HTH,
Ann

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.