--- layout: page title: How to recover a destroyed deployment parent: How to ... --- # How to recover a destroyed deployment ## Overview Let's consider a situation where we had an ArangoDeployment in Cluster mode (3 DbServers, 3 Coordinators, 3 Agents) with Local storage attached (only one K8s Node in the K8s cluster). Due to some reason the ArangoDeployment was deleted (e.g. ETCD storage has been wiped out) and we want to recover it. Fortunately, we have a backup of the data on the disk. To recover the ArangoDeployment we need to: 1. Create PV and PVC for each member with persistent storage (agent, dbservers, single) 2. Create a new ArangoDeployment with the same members IDs ## Local storage data We have a members (Agents & DbServers) data in the following directories: ```bash > ls -1 /var/data/ f9rs2htwc9e0bzme fepwdnnbf0keylgx gqnkahucthoaityt vka6ic19qcl1y3ec rhlf8vixbsbewefo rlzl467vfgsdpofu ``` To find out the name of the members to which data should be attached, we need to check the `UUID` file content in each directory: ```bash > cat /var/data/*/UUID AGNT-pntg5yc8 AGNT-kfyuj8ow AGNT-bv5rofcz PRMR-9xztmg4t PRMR-l1pp19yl PRMR-31akmzrp ``` ## Initial ArangoDeployment Here is an example of the initial ArangoDeployment before deletion: ```yaml cat <