# Drone backup and restore

**URL:** <https://drone.discourse.group/t/drone-backup-and-restore/10273>\
**Category:** Drone Support\
**Created:** [March 19, 2020, 8:56am UTC](https://drone.discourse.group/t/drone-backup-and-restore/10273 "2020-03-19T08:56:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jefimm](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/jefimm/32/5497_2.png) [@jefimm](https://drone.discourse.group/u/jefimm)\
**Post date:** [March 19, 2020, 8:56am UTC](https://drone.discourse.group/t/drone-backup-and-restore/10273/1 "2020-03-19T08:56:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![bradrydzewski](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/bradrydzewski/32/3513_2.png) [@bradrydzewski](https://drone.discourse.group/u/bradrydzewski)\
**Post date:** [March 19, 2020, 3:43pm UTC](https://drone.discourse.group/t/drone-backup-and-restore/10273/2 "2020-03-19T15:43:19Z")

</div>

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.
