mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-01-24 11:46:31 +02:00
[Issue #149] help update
This commit is contained in:
parent
3a2a56a300
commit
925b7d588e
53
src/help.c
53
src/help.c
@ -153,6 +153,8 @@ help_pg_probackup(void)
|
|||||||
printf(_(" [--recovery-target-name=target-name]\n"));
|
printf(_(" [--recovery-target-name=target-name]\n"));
|
||||||
printf(_(" [--recovery-target-action=pause|promote|shutdown]\n"));
|
printf(_(" [--recovery-target-action=pause|promote|shutdown]\n"));
|
||||||
printf(_(" [--restore-as-replica] [--force]\n"));
|
printf(_(" [--restore-as-replica] [--force]\n"));
|
||||||
|
printf(_(" [--primary-conninfo=primary_conninfo]\n"));
|
||||||
|
printf(_(" [-S | --primary-slot-name=slotname]\n"));
|
||||||
printf(_(" [--no-validate] [--skip-block-validation]\n"));
|
printf(_(" [--no-validate] [--skip-block-validation]\n"));
|
||||||
printf(_(" [-T OLDDIR=NEWDIR] [--progress]\n"));
|
printf(_(" [-T OLDDIR=NEWDIR] [--progress]\n"));
|
||||||
printf(_(" [--external-mapping=OLDDIR=NEWDIR]\n"));
|
printf(_(" [--external-mapping=OLDDIR=NEWDIR]\n"));
|
||||||
@ -382,20 +384,20 @@ help_restore(void)
|
|||||||
{
|
{
|
||||||
printf(_("\n%s restore -B backup-path --instance=instance_name\n"), PROGRAM_NAME);
|
printf(_("\n%s restore -B backup-path --instance=instance_name\n"), PROGRAM_NAME);
|
||||||
printf(_(" [-D pgdata-path] [-i backup-id] [-j num-threads]\n"));
|
printf(_(" [-D pgdata-path] [-i backup-id] [-j num-threads]\n"));
|
||||||
|
printf(_(" [--progress] [--force] [--no-sync]\n"));
|
||||||
|
printf(_(" [--no-validate] [--skip-block-validation]\n"));
|
||||||
|
printf(_(" [-T OLDDIR=NEWDIR]\n"));
|
||||||
|
printf(_(" [--external-mapping=OLDDIR=NEWDIR]\n"));
|
||||||
|
printf(_(" [--skip-external-dirs]\n"));
|
||||||
|
printf(_(" [--db-include dbname | --db-exclude dbname]\n"));
|
||||||
printf(_(" [--recovery-target-time=time|--recovery-target-xid=xid\n"));
|
printf(_(" [--recovery-target-time=time|--recovery-target-xid=xid\n"));
|
||||||
printf(_(" |--recovery-target-lsn=lsn [--recovery-target-inclusive=boolean]]\n"));
|
printf(_(" |--recovery-target-lsn=lsn [--recovery-target-inclusive=boolean]]\n"));
|
||||||
printf(_(" [--recovery-target-timeline=timeline]\n"));
|
printf(_(" [--recovery-target-timeline=timeline]\n"));
|
||||||
printf(_(" [--recovery-target=immediate|latest]\n"));
|
printf(_(" [--recovery-target=immediate|latest]\n"));
|
||||||
printf(_(" [--recovery-target-name=target-name]\n"));
|
printf(_(" [--recovery-target-name=target-name]\n"));
|
||||||
printf(_(" [--recovery-target-action=pause|promote|shutdown]\n"));
|
printf(_(" [--recovery-target-action=pause|promote|shutdown]\n"));
|
||||||
printf(_(" [--restore-as-replica] [--force]\n"));
|
|
||||||
printf(_(" [--no-validate] [--skip-block-validation]\n"));
|
|
||||||
printf(_(" [-T OLDDIR=NEWDIR] [--progress]\n"));
|
|
||||||
printf(_(" [--external-mapping=OLDDIR=NEWDIR]\n"));
|
|
||||||
printf(_(" [--skip-external-dirs]\n"));
|
|
||||||
printf(_(" [--restore-command=cmdline]\n"));
|
printf(_(" [--restore-command=cmdline]\n"));
|
||||||
printf(_(" [--no-sync]\n"));
|
printf(_(" [-R | --restore-as-replica]\n"));
|
||||||
printf(_(" [--db-include dbname | --db-exclude dbname]\n"));
|
|
||||||
printf(_(" [--remote-proto] [--remote-host]\n"));
|
printf(_(" [--remote-proto] [--remote-host]\n"));
|
||||||
printf(_(" [--remote-port] [--remote-path] [--remote-user]\n"));
|
printf(_(" [--remote-port] [--remote-path] [--remote-user]\n"));
|
||||||
printf(_(" [--ssh-options]\n"));
|
printf(_(" [--ssh-options]\n"));
|
||||||
@ -410,6 +412,22 @@ help_restore(void)
|
|||||||
printf(_(" -j, --threads=NUM number of parallel threads\n"));
|
printf(_(" -j, --threads=NUM number of parallel threads\n"));
|
||||||
|
|
||||||
printf(_(" --progress show progress\n"));
|
printf(_(" --progress show progress\n"));
|
||||||
|
printf(_(" --force ignore invalid status of the restored backup\n"));
|
||||||
|
printf(_(" --no-sync do not sync restored files to disk\n"));
|
||||||
|
printf(_(" --no-validate disable backup validation during restore\n"));
|
||||||
|
printf(_(" --skip-block-validation set to validate only file-level checksum\n"));
|
||||||
|
|
||||||
|
printf(_(" -T, --tablespace-mapping=OLDDIR=NEWDIR\n"));
|
||||||
|
printf(_(" relocate the tablespace from directory OLDDIR to NEWDIR\n"));
|
||||||
|
printf(_(" --external-mapping=OLDDIR=NEWDIR\n"));
|
||||||
|
printf(_(" relocate the external directory from OLDDIR to NEWDIR\n"));
|
||||||
|
printf(_(" --skip-external-dirs do not restore all external directories\n"));
|
||||||
|
|
||||||
|
printf(_("\n Partial restore options:\n"));
|
||||||
|
printf(_(" --db-include dbname restore only specified databases\n"));
|
||||||
|
printf(_(" --db-exclude dbname do not restore specified databases\n"));
|
||||||
|
|
||||||
|
printf(_("\n Recovery options:\n"));
|
||||||
printf(_(" --recovery-target-time=time time stamp up to which recovery will proceed\n"));
|
printf(_(" --recovery-target-time=time time stamp up to which recovery will proceed\n"));
|
||||||
printf(_(" --recovery-target-xid=xid transaction ID up to which recovery will proceed\n"));
|
printf(_(" --recovery-target-xid=xid transaction ID up to which recovery will proceed\n"));
|
||||||
printf(_(" --recovery-target-lsn=lsn LSN of the write-ahead log location up to which recovery will proceed\n"));
|
printf(_(" --recovery-target-lsn=lsn LSN of the write-ahead log location up to which recovery will proceed\n"));
|
||||||
@ -424,24 +442,15 @@ help_restore(void)
|
|||||||
printf(_(" --recovery-target-action=pause|promote|shutdown\n"));
|
printf(_(" --recovery-target-action=pause|promote|shutdown\n"));
|
||||||
printf(_(" action the server should take once the recovery target is reached\n"));
|
printf(_(" action the server should take once the recovery target is reached\n"));
|
||||||
printf(_(" (default: pause)\n"));
|
printf(_(" (default: pause)\n"));
|
||||||
|
printf(_(" --restore-command=cmdline command to use as 'restore_command' in recovery.conf; 'none' disables\n"));
|
||||||
|
|
||||||
|
printf(_("\n Standby options:\n"));
|
||||||
printf(_(" -R, --restore-as-replica write a minimal recovery.conf in the output directory\n"));
|
printf(_(" -R, --restore-as-replica write a minimal recovery.conf in the output directory\n"));
|
||||||
printf(_(" to ease setting up a standby server\n"));
|
printf(_(" to ease setting up a standby server\n"));
|
||||||
printf(_(" --force ignore invalid status of the restored backup\n"));
|
printf(_(" --primary-conninfo=primary_conninfo\n"));
|
||||||
printf(_(" --no-validate disable backup validation during restore\n"));
|
printf(_(" connection string to be used for establishing connection\n"));
|
||||||
printf(_(" --skip-block-validation set to validate only file-level checksum\n"));
|
printf(_(" with the primary server\n"));
|
||||||
|
printf(_(" -S, --primary-slot-name=slotname replication slot to be used for WAL streaming from the primary server\n"));
|
||||||
printf(_(" -T, --tablespace-mapping=OLDDIR=NEWDIR\n"));
|
|
||||||
printf(_(" relocate the tablespace from directory OLDDIR to NEWDIR\n"));
|
|
||||||
printf(_(" --external-mapping=OLDDIR=NEWDIR\n"));
|
|
||||||
printf(_(" relocate the external directory from OLDDIR to NEWDIR\n"));
|
|
||||||
printf(_(" --skip-external-dirs do not restore all external directories\n"));
|
|
||||||
printf(_(" --restore-command=cmdline command to use as 'restore_command' in recovery.conf; 'none' disables\n"));
|
|
||||||
printf(_(" --no-sync do not sync restored files to disk\n"));
|
|
||||||
|
|
||||||
printf(_("\n Partial restore options:\n"));
|
|
||||||
printf(_(" --db-include dbname restore only specified databases\n"));
|
|
||||||
printf(_(" --db-exclude dbname do not restore specified databases\n"));
|
|
||||||
|
|
||||||
printf(_("\n Logging options:\n"));
|
printf(_("\n Logging options:\n"));
|
||||||
printf(_(" --log-level-console=log-level-console\n"));
|
printf(_(" --log-level-console=log-level-console\n"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user