You've already forked pg_probackup
mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-09-16 09:26:30 +02:00
Name the backup by its ID
This commit is contained in:
@@ -131,7 +131,6 @@ do_restore_or_validate(InstanceState *instanceState, time_t target_backup_id, pg
|
||||
bool cleanup_pgdata = false;
|
||||
bool backup_has_tblspc = true; /* backup contain tablespace */
|
||||
XLogRecPtr shift_lsn = InvalidXLogRecPtr;
|
||||
char timestamp[100];
|
||||
|
||||
if (instanceState == NULL)
|
||||
elog(ERROR, "Required parameter not specified: --instance");
|
||||
@@ -688,11 +687,10 @@ do_restore_or_validate(InstanceState *instanceState, time_t target_backup_id, pg
|
||||
backup_id_of(dest_backup),
|
||||
dest_backup->server_version);
|
||||
|
||||
time2iso(timestamp, lengthof(timestamp), dest_backup->start_time, false);
|
||||
if (instance_config.remote.host)
|
||||
elog(INFO, "Restoring the database from the backup starting at %s on %s", timestamp, instance_config.remote.host);
|
||||
elog(INFO, "Restoring the database from backup %s on %s", backup_id_of(dest_backup), instance_config.remote.host);
|
||||
else
|
||||
elog(INFO, "Restoring the database from the backup starting at %s", timestamp);
|
||||
elog(INFO, "Restoring the database from backup %s", backup_id_of(dest_backup));
|
||||
|
||||
restore_chain(dest_backup, parent_chain, dbOid_exclude_list, params,
|
||||
instance_config.pgdata, no_sync, cleanup_pgdata, backup_has_tblspc);
|
||||
|
Reference in New Issue
Block a user