Drone

Drone backup and restore

Hi

We need to move our drone installation from one gke cluster to another.
What is the best possible way do do it without loosing data ?
What needs to be backed up and restored at new cluster?
Are there any considerations we need to take into account?

Thank you for your help

Drone stores all state in the database.

  • If you are using a sqlite3 database you would copy the database file from your old cluster to your new cluster.
  • If you are using a hosted database (e.g. cloud sql) you would just shutdown the old Drone cluster and point the new Drone cluster to the existing database
  • If you are self-hosting a database (mysql, postgres) inside the cluster, and you want to setup a new database in the new cluster, you would use standard database backup and restore tools to move the data from the old database to the new database.