@@ -119,6 +119,9 @@ help_pg_probackup(void)
119119printf (_ (" [--master-port=port] [--master-user=user_name]\n" ));
120120printf (_ (" [--replica-timeout=timeout]\n" ));
121121printf (_ (" [--skip-block-validation]\n" ));
122+ printf (_ (" [--remote-proto] [--remote-host]\n" ));
123+ printf (_ (" [--remote-port] [--remote-path]\n" ));
124+ printf (_ (" [--ssh-options]\n" ));
122125
123126printf (_ ("\n %s restore -B backup-path --instance=instance_name\n" ),PROGRAM_NAME );
124127printf (_ (" [-D pgdata-path] [-i backup-id] [--progress]\n" ));
@@ -129,6 +132,9 @@ help_pg_probackup(void)
129132printf (_ (" [--restore-as-replica]\n" ));
130133printf (_ (" [--no-validate]\n" ));
131134printf (_ (" [--skip-block-validation]\n" ));
135+ printf (_ (" [--remote-proto] [--remote-host]\n" ));
136+ printf (_ (" [--remote-port] [--remote-path]\n" ));
137+ printf (_ (" [--ssh-options]\n" ));
132138
133139printf (_ ("\n %s validate -B backup-path [--instance=instance_name]\n" ),PROGRAM_NAME );
134140printf (_ (" [-i backup-id] [--progress]\n" ));
@@ -148,6 +154,9 @@ help_pg_probackup(void)
148154
149155printf (_ ("\n %s add-instance -B backup-path -D pgdata-path\n" ),PROGRAM_NAME );
150156printf (_ (" --instance=instance_name\n" ));
157+ printf (_ (" [--remote-proto] [--remote-host]\n" ));
158+ printf (_ (" [--remote-port] [--remote-path]\n" ));
159+ printf (_ (" [--ssh-options]\n" ));
151160
152161printf (_ ("\n %s del-instance -B backup-path\n" ),PROGRAM_NAME );
153162printf (_ (" --instance=instance_name\n" ));
@@ -159,10 +168,16 @@ help_pg_probackup(void)
159168printf (_ (" [--compress-algorithm=compress-algorithm]\n" ));
160169printf (_ (" [--compress-level=compress-level]\n" ));
161170printf (_ (" [--overwrite]\n" ));
171+ printf (_ (" [--remote-proto] [--remote-host]\n" ));
172+ printf (_ (" [--remote-port] [--remote-path]\n" ));
173+ printf (_ (" [--ssh-options]\n" ));
162174
163175printf (_ ("\n %s archive-get -B backup-path --instance=instance_name\n" ),PROGRAM_NAME );
164176printf (_ (" --wal-file-path=wal-file-path\n" ));
165177printf (_ (" --wal-file-name=wal-file-name\n" ));
178+ printf (_ (" [--remote-proto] [--remote-host]\n" ));
179+ printf (_ (" [--remote-port] [--remote-path]\n" ));
180+ printf (_ (" [--ssh-options]\n" ));
166181
167182if ((PROGRAM_URL || PROGRAM_EMAIL ))
168183{
@@ -207,7 +222,10 @@ help_backup(void)
207222printf (_ (" [--master-db=db_name] [--master-host=host_name]\n" ));
208223printf (_ (" [--master-port=port] [--master-user=user_name]\n" ));
209224printf (_ (" [--replica-timeout=timeout]\n" ));
210- printf (_ (" [--skip-block-validation]\n\n" ));
225+ printf (_ (" [--skip-block-validation]\n" ));
226+ printf (_ (" [--remote-proto] [--remote-host]\n" ));
227+ printf (_ (" [--remote-port] [--remote-path]\n" ));
228+ printf (_ (" [--ssh-options]\n\n" ));
211229
212230printf (_ (" -B, --backup-path=backup-path location of the backup storage area\n" ));
213231printf (_ (" -b, --backup-mode=backup-mode backup mode=FULL|PAGE|DELTA|PTRACK\n" ));
@@ -272,6 +290,14 @@ help_backup(void)
272290printf (_ (" --master-host=host_name database server host of master\n" ));
273291printf (_ (" --master-port=port database server port of master\n" ));
274292printf (_ (" --replica-timeout=timeout wait timeout for WAL segment streaming through replication (default: 5min)\n" ));
293+
294+ printf (_ ("\n Remote options:\n" ));
295+ printf (_ (" --remote-proto=protocol remote protocol to use\n" ));
296+ printf (_ (" available options: 'ssh', 'none' (default: none)\n" ));
297+ printf (_ (" --remote-host=hostname remote host address or hostname\n" ));
298+ printf (_ (" --remote-port=port remote host port (default: 22)\n" ));
299+ printf (_ (" --remote-path=path path to pg_probackup binary on remote host (default: current binary path)\n" ));
300+ printf (_ (" --ssh-options=ssh_options additional ssh options (default: none)\n" ));
275301}
276302
277303static void
@@ -284,7 +310,10 @@ help_restore(void)
284310printf (_ (" [--immediate] [--recovery-target-name=target-name]\n" ));
285311printf (_ (" [--recovery-target-action=pause|promote|shutdown]\n" ));
286312printf (_ (" [--restore-as-replica] [--no-validate]\n\n" ));
287- printf (_ (" [--skip-block-validation]\n\n" ));
313+ printf (_ (" [--skip-block-validation]\n" ));
314+ printf (_ (" [--remote-proto] [--remote-host]\n" ));
315+ printf (_ (" [--remote-port] [--remote-path]\n" ));
316+ printf (_ (" [--ssh-options]\n\n" ));
288317
289318printf (_ (" -B, --backup-path=backup-path location of the backup storage area\n" ));
290319printf (_ (" --instance=instance_name name of the instance\n" ));
@@ -333,6 +362,14 @@ help_restore(void)
333362printf (_ (" --log-rotation-age=log-rotation-age\n" ));
334363printf (_ (" rotate logfile if its age exceeds this value; 0 disables; (default: 0)\n" ));
335364printf (_ (" available units: 'ms', 's', 'min', 'h', 'd' (default: min)\n" ));
365+
366+ printf (_ ("\n Remote options:\n" ));
367+ printf (_ (" --remote-proto=protocol remote protocol to use\n" ));
368+ printf (_ (" available options: 'ssh', 'none' (default: none)\n" ));
369+ printf (_ (" --remote-host=hostname remote host address or hostname\n" ));
370+ printf (_ (" --remote-port=port remote host port (default: 22)\n" ));
371+ printf (_ (" --remote-path=path path to pg_probackup binary on remote host (default: current binary path)\n" ));
372+ printf (_ (" --ssh-options=ssh_options additional ssh options (default: none)\n" ));
336373}
337374
338375static void
@@ -558,11 +595,22 @@ static void
558595help_add_instance (void )
559596{
560597printf (_ ("%s add-instance -B backup-path -D pgdata-path\n" ),PROGRAM_NAME );
561- printf (_ (" --instance=instance_name\n\n" ));
598+ printf (_ (" --instance=instance_name\n" ));
599+ printf (_ (" [--remote-proto] [--remote-host]\n" ));
600+ printf (_ (" [--remote-port] [--remote-path]\n" ));
601+ printf (_ (" [--ssh-options]\n\n" ));
562602
563603printf (_ (" -B, --backup-path=backup-path location of the backup storage area\n" ));
564604printf (_ (" -D, --pgdata=pgdata-path location of the database storage area\n" ));
565605printf (_ (" --instance=instance_name name of the new instance\n" ));
606+
607+ printf (_ ("\n Remote options:\n" ));
608+ printf (_ (" --remote-proto=protocol remote protocol to use\n" ));
609+ printf (_ (" available options: 'ssh', 'none' (default: none)\n" ));
610+ printf (_ (" --remote-host=hostname remote host address or hostname\n" ));
611+ printf (_ (" --remote-port=port remote host port (default: 22)\n" ));
612+ printf (_ (" --remote-path=path path to pg_probackup binary on remote host (default: current binary path)\n" ));
613+ printf (_ (" --ssh-options=ssh_options additional ssh options (default: none)\n" ));
566614}
567615
568616static void
@@ -583,7 +631,10 @@ help_archive_push(void)
583631printf (_ (" [--compress]\n" ));
584632printf (_ (" [--compress-algorithm=compress-algorithm]\n" ));
585633printf (_ (" [--compress-level=compress-level]\n" ));
586- printf (_ (" [--overwrite]\n\n" ));
634+ printf (_ (" [--overwrite]\n" ));
635+ printf (_ (" [--remote-proto] [--remote-host]\n" ));
636+ printf (_ (" [--remote-port] [--remote-path]\n" ));
637+ printf (_ (" [--ssh-options]\n\n" ));
587638
588639printf (_ (" -B, --backup-path=backup-path location of the backup storage area\n" ));
589640printf (_ (" --instance=instance_name name of the instance to delete\n" ));
@@ -604,12 +655,23 @@ help_archive_get(void)
604655{
605656printf (_ ("\n %s archive-get -B backup-path --instance=instance_name\n" ),PROGRAM_NAME );
606657printf (_ (" --wal-file-path=wal-file-path\n" ));
607- printf (_ (" --wal-file-name=wal-file-name\n\n" ));
658+ printf (_ (" --wal-file-name=wal-file-name\n" ));
659+ printf (_ (" [--remote-proto] [--remote-host]\n" ));
660+ printf (_ (" [--remote-port] [--remote-path]\n" ));
661+ printf (_ (" [--ssh-options]\n\n" ));
608662
609663printf (_ (" -B, --backup-path=backup-path location of the backup storage area\n" ));
610664printf (_ (" --instance=instance_name name of the instance to delete\n" ));
611665printf (_ (" --wal-file-path=wal-file-path\n" ));
612666printf (_ (" relative destination path name of the WAL file on the server\n" ));
613667printf (_ (" --wal-file-name=wal-file-name\n" ));
614668printf (_ (" name of the WAL file to retrieve from the archive\n" ));
669+
670+ printf (_ ("\n Remote options:\n" ));
671+ printf (_ (" --remote-proto=protocol remote protocol to use\n" ));
672+ printf (_ (" available options: 'ssh', 'none' (default: none)\n" ));
673+ printf (_ (" --remote-host=hostname remote host address or hostname\n" ));
674+ printf (_ (" --remote-port=port remote host port (default: 22)\n" ));
675+ printf (_ (" --remote-path=path path to pg_probackup binary on remote host (default: current binary path)\n" ));
676+ printf (_ (" --ssh-options=ssh_options additional ssh options (default: none)\n" ));
615677}