delete backup - pgrecm/RECM GitHub Wiki

Home - Top

This command delete backups. Usually, we delete 'INCOMPLETE' or 'OBSOLETE' backups. But in some case, we can delete other backups.

Option/Qualifier

/uid=UID
/uid=UID1,UID2,...
Delete one, or more backups, specified by the backup ID(UID). This option don't take care of the status of the backup. Attention:
You can delete 'AVAILABLE' backup.
There is NO confirmation at all.
/incomplete Delete all 'INCOMPLETE' state backups.
/obsolete Delete all 'OBSOLETE' state backups.
/failed Delete all 'FAILED' state backups.
/noremove Delete backup definition in the DEPOSIT, but keep physical files.
/before="date" You can reduce the range of the deletion, before a date.
/after="date" You can reduce the range of the deletion, after a date
/verbose Display more details.

Description

Without one of the following options : '/incomplete','/obsolete','/failed', the delete backup operation will not delete anything. Remarks:

  • You cannot delete backups of other cluster.
  • The command does not ask for confirmation to proceed.
  • The only way to delete 'active' backups is to use the qualifier '/uid=UID'.

Example

CLU12> delete backup /obsolete /verbose 
recm-inf: Scanning Backup FULL '000161dc6e4411df5140' (OBSOLETE)
recm-inf:  Removing physical file '/Volumes/pg_backups/000161dc6e4411df5140_1_FULL.recm'
recm-inf:  Removing physical file '/Volumes/pg_backups/000161dc6e4411df5140_2_FULL.recm'
recm-inf:  Removing physical file '/Volumes/pg_backups/000161dc6e4411df5140_3_FULL.recm'
recm-inf:  Removing physical file '/Volumes/pg_backups/000161dc6e4411df5140_4_FULL.recm'
recm-inf:  Removing physical file '/Volumes/pg_backups/000161dc6e4411df5140_5_FULL.recm'
recm-inf:  Removing physical file '/Volumes/pg_backups/000161dc6e4411df5140_6_FULL.recm'
recm-inf:  Removing physical file '/Volumes/pg_backups/000161dc6e4411df5140_7_FULL.recm'
recm-inf:  Removing physical file '/Volumes/pg_backups/000161dc6e4411df5140_8_FULL.recm'
recm-inf:  Removing physical file '/Volumes/pg_backups/000161dc6e4411df5140_9_FULL.recm'
recm-inf:  Removing physical file '/Volumes/pg_backups/000161dc6e4411df5140_10_FULL.recm'
recm-inf:  Removing physical file '/Volumes/pg_backups/000161dc6e4411df5140_11_FULL.recm'
recm-inf:  Removing physical file '/Volumes/pg_backups/000161dc6e4411df5140_12_FULL.recm'
recm-inf:  Removing physical file '/Volumes/pg_backups/000161dc6e4411df5140_13_FULL.recm'
recm-inf:  Removing physical file '/Volumes/pg_backups/000161dc6e4411df5140_14_FULL.recm'
recm-inf: Scanning Backup WAL '000161dc6e5503758f20' (OBSOLETE)
recm-inf:  Removing physical file '/Volumes/pg_backups/000161dc6e5503758f20_1_WAL.recm'
recm-inf: Scanning Backup WAL '000161dc6e8024137558' (OBSOLETE)
recm-inf:  Removing physical file '/Volumes/pg_backups/000161dc6e8024137558_1_WAL.recm'
recm-inf: Scanning Backup WAL '000161dc6ebc30e5c2e0' (OBSOLETE)
recm-inf:  Removing physical file '/Volumes/pg_backups/000161dc6ebc30e5c2e0_1_WAL.recm'
recm-inf: Scanning Backup WAL '000161dc6ef8189f6010' (OBSOLETE)
recm-inf:  Removing physical file '/Volumes/pg_backups/000161dc6ef8189f6010_1_WAL.recm'
recm-inf: Scanning Backup WAL '000161dc6f3500c7a560' (OBSOLETE)
recm-inf:  Removing physical file '/Volumes/pg_backups/000161dc6f3500c7a560_1_WAL.recm'
recm-inf: Scanning Backup WAL '000161dc6f70237ede48' (OBSOLETE)
recm-inf:  Removing physical file '/Volumes/pg_backups/000161dc6f70237ede48_1_WAL.recm'

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