Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1af622f

Browse files
committed
Options cleanup
1 parent1c87d61 commit1af622f

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
return0;
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
elseif (strcmp(argv[1],"delete")==0)
132132
backup_subcmd=DELETE;
133-
elseif (strcmp(argv[1],"configure")==0)
133+
elseif (strcmp(argv[1],"config")==0)
134134
backup_subcmd=CONFIGURE;
135-
elseif (strcmp(argv[1],"--help")==0||strcmp(argv[1],"-?")==0)
135+
elseif (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-
elseif (strcmp(argv[1],"--version")==0||strcmp(argv[1],"-V")==0)
142+
elseif (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)

[8]ページ先頭

©2009-2025 Movatter.jp