delete cluster - pgrecm/RECM GitHub Wiki

Home - Top

This command delete a cluster from the deposit. You cannot delete the cluster that is currently connected. This command just delete the cluster entry in the repository. It does not affect the cluster itself. Options and qualifiers

Option/Qualifier

/cid="CID" ID of the cluster to delete. The id can be found via the command 'list cluster'.
/force Deleting a cluster require the cluster to be disabled first. The force option allow you to remove it without taking care of the status of the cluster.
/includefiles Delete all backup files before to delete cluster from the DEPOSIT.
/verbose Display more details.

Description

The deletion of the cluster does not affect the potential remaining backup files. The deletion is only logical (Just removed from the deposit). No alteration is done on the existing backups and the PostgreSQL cluster itself.

If you delete a cluster from a different host, the backup path may be different. To use a different path for deleting files, you may use the 'set source/directory' command.

Example

RECM> list clusters 
List of registered clusters

CID        State           Name                 IP              Description
---------- --------------- ---------------      -------------------- ------------------------------
1          ENABLED         CLU12                192.168.1.62    Version 12
3          ENABLED         CLU14                192.168.1.181   Version 14
2          ENABLED         REPO12               192.168.1.62    Version 12

RECM> del cluster/cid=3/includefiles/verbose 
recm-err(3004): Cluster 'CLU14' is enabled. Use '/force' option or disable first the cluster.
RECM> delete cluster/cid=3/includefiles/verbose/force 
recm-inf: Deleting file '/media/pg_backups/000361d389280ae4e547_1_FULL.recm' ...Ok
.........
Cluster 'CLU14' deleted.

CLU12>
⚠️ **GitHub.com Fallback** ⚠️