1

I created a stanza named 'test', then i delete it and tried to recreate it with the same name i got an error stop file exists for stanza test even when i try to stop pgbackrest i get a warn stop file exists for stanza test

Any help please ?

Thank you

rabeb soltani
  • 41
  • 1
  • 3

1 Answers1

0

The answer is in the question, itself. The Stanza is not deleted properly.

To delete a stanza:

  • Shut down the PostgreSQL cluster associated with the stanza (or use --force to override).
  • Run the stop command on the repository host.
  • Run the stanza-delete command on the repository host.

Commands:

=> To stop cluster
sudo pg_ctlcluster 12 demo stop

=> To stop pgBackRest for the stanza    
sudo -u postgres pgbackrest --stanza=demo --log-level-console=info stop

=> To delete the stanza
sudo -u postgres pgbackrest --stanza=demo --log-level-console=info stanza-delete
Thirumal
  • 8,280
  • 11
  • 53
  • 103