1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-07-05 00:28:52 +02:00

Auto-select backup for restore command --type=lsn.

For PITR with --type=lsn, attempt to auto-select the appropriate backup set based on the --target LSN provided. Pick the most recent backup where backup-lsn-stop is less than or equal to the provided LSN.
This commit is contained in:
Reid Thompson
2022-04-05 11:59:12 -04:00
committed by GitHub
parent 08d9e269c6
commit d8d4132118
5 changed files with 198 additions and 31 deletions

View File

@ -177,13 +177,15 @@ testRun(void)
"specific repository, the --repo option can be passed (e.g. --repo=1). The --set\n"
"option can be passed if a backup other than the latest is desired.\n"
"\n"
"When PITR of --type=time is specified, then the target time must be specified\n"
"with the --target option. If a backup is not specified via the --set option,\n"
"then the configured repositories will be checked, in order, for a backup that\n"
"contains the requested time. If no backup can be found, the latest backup from\n"
"the first repository containing backups will be used. For other types of PITR,\n"
"e.g. xid, the --set option must be provided if the target is prior to the\n"
"latest backup. See Point-in-Time Recovery for more details and examples.\n"
"When PITR of --type=time or --type=lsn is specified, then the target time or\n"
"target lsn must be specified with the --target option. If a backup is not\n"
"specified via the --set option, then the configured repositories will be\n"
"checked, in order, for a backup that contains the requested time or lsn. If no\n"
"matching backup is found, the latest backup from the first repository\n"
"containing backups will be used for --type=time while no backup will be\n"
"selected for --type=lsn. For other types of PITR, e.g. xid, the --set option\n"
"must be provided if the target is prior to the latest backup. See Point-in-Time\n"
"Recovery for more details and examples.\n"
"\n"
"Replication slots are not included per recommendation of PostgreSQL. See\n"
"Backing Up The Data Directory in the PostgreSQL documentation for more\n"