Skip to content

Commit 1af622f

Browse files
committed
Options cleanup
1 parent 1c87d61 commit 1af622f

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

backup.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,13 @@ do_backup(void)
454454

455455
pgBackupValidate(&current);
456456

457+
/*
458+
* After successfil backup completion remove backups
459+
* which are expired according to retention policies
460+
*/
461+
if (delete_expired)
462+
do_retention_purge();
463+
457464
return 0;
458465
}
459466

pg_probackup.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,18 @@ main(int argc, char *argv[])
130130
backup_subcmd = SHOW;
131131
else if (strcmp(argv[1], "delete") == 0)
132132
backup_subcmd = DELETE;
133-
else if (strcmp(argv[1], "configure") == 0)
133+
else if (strcmp(argv[1], "config") == 0)
134134
backup_subcmd = CONFIGURE;
135-
else if (strcmp(argv[1], "--help") == 0 || strcmp(argv[1], "-?") == 0)
135+
else if (strcmp(argv[1], "--help") == 0
136+
|| strcmp(argv[1], "help") == 0
137+
|| strcmp(argv[1], "-?") == 0)
136138
{
137139
help(true);
138140
exit(0);
139141
}
140-
else if (strcmp(argv[1], "--version") == 0 || strcmp(argv[1], "-V") == 0)
142+
else if (strcmp(argv[1], "--version") == 0
143+
|| strcmp(argv[1], "version") == 0
144+
|| strcmp(argv[1], "-V") == 0)
141145
{
142146
fprintf(stderr, "%s %s\n", PROGRAM_NAME, PROGRAM_VERSION);
143147
exit(0);

0 commit comments

Comments
 (0)