Skip to content

Commit 985cba3

Browse files
committed
Add dry-run option for catchup into help message
1 parent 00f781d commit 985cba3

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ env:
3636
- PG_VERSION=9.5 PG_BRANCH=REL9_5_STABLE
3737
# - PG_VERSION=13 PG_BRANCH=REL_13_STABLE PTRACK_PATCH_PG_BRANCH=off MODE=archive
3838
# - PG_VERSION=13 PG_BRANCH=REL_13_STABLE PTRACK_PATCH_PG_BRANCH=REL_13_STABLE MODE=backup
39-
# - PG_VERSION=13 PG_BRANCH=REL_13_STABLE PTRACK_PATCH_PG_BRANCH=REL_13_STABLE MODE=catchup
39+
- PG_VERSION=13 PG_BRANCH=REL_13_STABLE PTRACK_PATCH_PG_BRANCH=REL_13_STABLE MODE=catchup
4040
# - PG_VERSION=13 PG_BRANCH=REL_13_STABLE PTRACK_PATCH_PG_BRANCH=off MODE=compression
4141
# - PG_VERSION=13 PG_BRANCH=REL_13_STABLE PTRACK_PATCH_PG_BRANCH=off MODE=delta
4242
# - PG_VERSION=13 PG_BRANCH=REL_13_STABLE PTRACK_PATCH_PG_BRANCH=off MODE=locking

src/help.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,6 +1047,7 @@ help_catchup(void)
10471047
printf(_(" [--remote-proto] [--remote-host]\n"));
10481048
printf(_(" [--remote-port] [--remote-path] [--remote-user]\n"));
10491049
printf(_(" [--ssh-options]\n"));
1050+
printf(_(" [--dry-run]\n"));
10501051
printf(_(" [--help]\n\n"));
10511052

10521053
printf(_(" -b, --backup-mode=catchup-mode catchup mode=FULL|DELTA|PTRACK\n"));
@@ -1081,4 +1082,6 @@ help_catchup(void)
10811082
printf(_(" --remote-user=username user name for ssh connection (default: current user)\n"));
10821083
printf(_(" --ssh-options=ssh_options additional ssh options (default: none)\n"));
10831084
printf(_(" (example: --ssh-options='-c cipher_spec -F configfile')\n\n"));
1085+
1086+
printf(_(" --dry-run perform a trial run without any changes\n\n"));
10841087
}

tests/expected/option_help.out

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ pg_probackup - utility to manage backup/recovery of PostgreSQL database.
178178
[--remote-proto] [--remote-host]
179179
[--remote-port] [--remote-path] [--remote-user]
180180
[--ssh-options]
181+
[--dry-run]
181182
[--help]
182183

183184
Read the website for details. <https://github.com/postgrespro/pg_probackup>

0 commit comments

Comments
 (0)