Migrating secrets to new server installation

Hello,

We are installing a fresh new drone set up since we purchased an official Enterprise license.

Is there a handy way to migrate secrets from repositories from old drone server to a new one? We have around 50 secrets, and digging them out and putting them to the new is a lot of work for our dev team.

I noticed there is a migration tool available, however it seemed to only be migrating locally to a newer version.

Thanks!

BR,
Petteri Oksanen

@petteri-virta,

You can migrate your db using drone-migrate/README.md at master · drone/drone-migrate · GitHub.
Other workaround I can think of migrating the db, as by default drone uses sqlite so you can migrate to posgres/mysql from existing sqlite db and point to new db while running the new instance.

Regards,
Harness Support

Hello,

Thank you for the response.

Our old drone server is running in one EC2 instance, and new in another EC2 instance, does the tool still fit in that scenario?

BR,
Petteri Oksanen

Hello,

Now that I have two different servers, each containing the .sqlite database file - what should I tell the drone/migrate tool to use? I refer to the “connection string” that is mentioned in instructions.

AFAIK they are in different instances and running in containers and the migration tool is container itself, so I am rather confused at this.

BR,
Petteri Oksanen