File tree Expand file tree Collapse file tree 3 files changed +4
-20
lines changed Expand file tree Collapse file tree 3 files changed +4
-20
lines changed Original file line number Diff line number Diff line change @@ -3229,10 +3229,10 @@ pg_probackup delete -B <replaceable>backup_dir</replaceable> --instance <replace
3229
3229
policy, without performing any irreversible actions.
3230
3230
</para >
3231
3231
<para >
3232
- To delete backups with the ERROR status, use the <option >--error-state </option > flag :
3232
+ To delete all backups with some status, use the <option >--status </option >:
3233
3233
</para >
3234
3234
<programlisting >
3235
- pg_probackup delete -B <replaceable >backup_dir</replaceable > --instance <replaceable >instance_name</replaceable > --error-state
3235
+ pg_probackup delete -B <replaceable >backup_dir</replaceable > --instance <replaceable >instance_name</replaceable > --status=ERROR
3236
3236
</programlisting >
3237
3237
3238
3238
</refsect2 >
@@ -3869,7 +3869,7 @@ pg_probackup merge -B <replaceable>backup_dir</replaceable> --instance <replacea
3869
3869
pg_probackup delete -B <replaceable >backup_dir</replaceable > --instance <replaceable >instance_name</replaceable >
3870
3870
[--help] [-j <replaceable >num_threads</replaceable >] [--progress]
3871
3871
[--retention-redundancy=<replaceable >redundancy</replaceable >][--retention-window=<replaceable >window</replaceable >][--wal-depth=<replaceable >wal_depth</replaceable >]
3872
- [--delete-wal] {-i <replaceable >backup_id</replaceable > | --delete-expired [--merge-expired] | --merge-expired | --error-state }
3872
+ [--delete-wal] {-i <replaceable >backup_id</replaceable > | --delete-expired [--merge-expired] | --merge-expired | --status= }
3873
3873
[--dry-run]
3874
3874
[<replaceable >logging_options</replaceable >]
3875
3875
</programlisting >
Original file line number Diff line number Diff line change @@ -488,22 +488,6 @@ BackupStatus
488
488
str2status (const char * status )
489
489
{
490
490
491
- /* static const char *statusName[] =
492
- {
493
- "UNKNOWN",
494
- "OK",
495
- "ERROR",
496
- "RUNNING",
497
- "MERGING",
498
- "MERGED",
499
- "DELETING",
500
- "DELETED",
501
- "DONE",
502
- "ORPHAN",
503
- "CORRUPT"
504
- };*/
505
-
506
-
507
491
for (int i = 0 ; i <= BACKUP_STATUS_CORRUPT ; i ++ )
508
492
{
509
493
if (pg_strcasecmp (status , statusName [i ]) == 0 ) return i ;
Original file line number Diff line number Diff line change @@ -835,7 +835,7 @@ def test_delete_error_backups(self):
835
835
self .assertEqual (len (show_backups ), 4 )
836
836
837
837
# delete error backups
838
- self .delete_pb (backup_dir , 'node' , options = ['--error-state ' ])
838
+ self .delete_pb (backup_dir , 'node' , options = ['--status=ERROR ' ])
839
839
840
840
print (self .show_pb (backup_dir , as_text = True , as_json = False ))
841
841
You can’t perform that action at this time.
0 commit comments