Skip to content

Commit 0e4d9fc

Browse files
committed
help: add 'Retenion options' to delete section
1 parent c9d3c58 commit 0e4d9fc

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

src/help.c

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,10 @@ help_pg_probackup(void)
170170
printf(_(" [--help]\n"));
171171

172172
printf(_("\n %s delete -B backup-path --instance=instance_name\n"), PROGRAM_NAME);
173-
printf(_(" [--wal] [-i backup-id | --expired | --merge-expired]\n"));
173+
printf(_(" [-j num-threads] [--progress]\n"));
174+
printf(_(" [--retention-redundancy=retention-redundancy]\n"));
175+
printf(_(" [--retention-window=retention-window]\n"));
176+
printf(_(" [--delete-wal] [-i backup-id | --delete-expired | --merge-expired]\n"));
174177
printf(_(" [--dry-run]\n"));
175178
printf(_(" [--help]\n"));
176179

@@ -300,7 +303,7 @@ help_backup(void)
300303
printf(_(" retention policy after successful backup completion\n"));
301304
printf(_(" --merge-expired merge backups expired according to current\n"));
302305
printf(_(" retention policy after successful backup completion\n"));
303-
printf(_(" --delete-wal remove redundant archived wal files\n"));
306+
printf(_(" --delete-wal remove redundant wal files in WAL archive\n"));
304307
printf(_(" --retention-redundancy=retention-redundancy\n"));
305308
printf(_(" number of full backups to keep; 0 disables; (default: 0)\n"));
306309
printf(_(" --retention-window=retention-window\n"));
@@ -556,18 +559,27 @@ static void
556559
help_delete(void)
557560
{
558561
printf(_("\n%s delete -B backup-path --instance=instance_name\n"), PROGRAM_NAME);
559-
printf(_(" [-i backup-id | --expired | --merge-expired] [--wal]\n"));
560-
printf(_(" [-j num-threads] [--dry-run]\n\n"));
562+
printf(_(" [-i backup-id | --delete-expired | --merge-expired] [--delete-wal]\n"));
563+
printf(_(" [-j num-threads] [--progress]\n"));
564+
printf(_(" [--retention-redundancy=retention-redundancy]\n"));
565+
printf(_(" [--retention-window=retention-window]\n\n"));
561566

562567
printf(_(" -B, --backup-path=backup-path location of the backup storage area\n"));
563568
printf(_(" --instance=instance_name name of the instance\n"));
564569
printf(_(" -i, --backup-id=backup-id backup to delete\n"));
565-
printf(_(" --expired delete backups expired according to current\n"));
570+
printf(_(" -j, --threads=NUM number of parallel threads\n"));
571+
printf(_(" --progress show progress\n"));
572+
573+
printf(_("\n Retention options:\n"));
574+
printf(_(" --delete-expired delete backups expired according to current\n"));
566575
printf(_(" retention policy\n"));
567576
printf(_(" --merge-expired merge backups expired according to current\n"));
568577
printf(_(" retention policy\n"));
569-
printf(_(" --wal remove unnecessary wal files in WAL ARCHIVE\n"));
570-
printf(_(" -j, --threads=NUM number of parallel threads\n"));
578+
printf(_(" --delete-wal remove redundant wal files in WAL archive\n"));
579+
printf(_(" --retention-redundancy=retention-redundancy\n"));
580+
printf(_(" number of full backups to keep; 0 disables; (default: 0)\n"));
581+
printf(_(" --retention-window=retention-window\n"));
582+
printf(_(" number of days of recoverability; 0 disables; (default: 0)\n"));
571583
printf(_(" --dry-run perform a trial run without any changes\n"));
572584

573585
printf(_("\n Logging options:\n"));

0 commit comments

Comments
 (0)