# Recreate a pgbackrest stanza for an existing cluster PGOv1.2

**URL:** <https://forums.percona.com/t/recreate-a-pgbackrest-stanza-for-an-existing-cluster-pgov1-2/26106>\
**Category:** Percona Operator for PostgreSQL\
**Created:** [October 23, 2023, 9:41am UTC](https://forums.percona.com/t/recreate-a-pgbackrest-stanza-for-an-existing-cluster-pgov1-2/26106 "2023-10-23T09:41:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergey\_Zhuravlev](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/sergey_zhuravlev/32/6410_2.png) [@Sergey\_Zhuravlev](https://forums.percona.com/u/Sergey_Zhuravlev)\
**Post date:** [October 23, 2023, 9:41am UTC](https://forums.percona.com/t/recreate-a-pgbackrest-stanza-for-an-existing-cluster-pgov1-2/26106/1 "2023-10-23T09:41:16Z")

</div>

mistakenly deleted data in the directory on

```auto
/backrestrepo/nsi-backrest-shared-repo/backup/db/

```

the stanza ceased to exist

```auto
bash-4.4$ pgbackrest info
stanza: db
    status: error (missing stanza data)
    cipher: none

```

Is there a way to run a job to create a stanza?

Or some other way to create it?  
There is a primary and a standby database, there is a pod backrest-shared-repo with a removed directory

backup data is not needed, no old ones

---

<div class="post-metadata">

**Author:** ![Sergey\_Zhuravlev](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/sergey_zhuravlev/32/6410_2.png) [@Sergey\_Zhuravlev](https://forums.percona.com/u/Sergey_Zhuravlev)\
**Post date:** [October 23, 2023, 5:11pm UTC](https://forums.percona.com/t/recreate-a-pgbackrest-stanza-for-an-existing-cluster-pgov1-2/26106/2 "2023-10-23T17:11:44Z")

</div>

UPD  
After some thought I realized that the stanza was not damaged)))

I lost my backups and also the backup.info file.

By the way, does anyone know where the stanza for pgbackuprest even exists?  
Мaybe in the form of a file? Or can I somehow get it like show config?

---

<div class="post-metadata">

**Author:** ![Sergey\_Zhuravlev](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/sergey_zhuravlev/32/6410_2.png) [@Sergey\_Zhuravlev](https://forums.percona.com/u/Sergey_Zhuravlev)\
**Post date:** [October 24, 2023, 2:03pm UTC](https://forums.percona.com/t/recreate-a-pgbackrest-stanza-for-an-existing-cluster-pgov1-2/26106/3 "2023-10-24T14:03:45Z")

</div>

I think that everything was successfully resolved.  
I only had to recover the mistakenly deleted file backup.info.  
Similar neighboring clusters helped restore its contents. And another launch

```auto
pg_controldata -D /pgdata/dbname/

```

The checksum is suggested by pgbackrest itself.  
It says in error - you have one, but it should be like this.

I managed to make a backup after everything.  
Be careful when deleting files)))
