@@ -131,6 +131,7 @@ do_restore_or_validate(InstanceState *instanceState, time_t target_backup_id, pg
131
131
bool cleanup_pgdata = false;
132
132
bool backup_has_tblspc = true; /* backup contain tablespace */
133
133
XLogRecPtr shift_lsn = InvalidXLogRecPtr ;
134
+ char timestamp [100 ];
134
135
135
136
if (instanceState == NULL )
136
137
elog (ERROR , "Required parameter not specified: --instance" );
@@ -687,6 +688,12 @@ do_restore_or_validate(InstanceState *instanceState, time_t target_backup_id, pg
687
688
backup_id_of (dest_backup ),
688
689
dest_backup -> server_version );
689
690
691
+ time2iso (timestamp , lengthof (timestamp ), dest_backup -> start_time , false);
692
+ if (instance_config .remote .host )
693
+ elog (INFO , "Restoring the database from the backup starting at %s on %s" , timestamp , instance_config .remote .host );
694
+ else
695
+ elog (INFO , "Restoring the database from the backup starting at %s" , timestamp );
696
+
690
697
restore_chain (dest_backup , parent_chain , dbOid_exclude_list , params ,
691
698
instance_config .pgdata , no_sync , cleanup_pgdata , backup_has_tblspc );
692
699
@@ -720,7 +727,6 @@ restore_chain(pgBackup *dest_backup, parray *parent_chain,
720
727
bool backup_has_tblspc )
721
728
{
722
729
int i ;
723
- char timestamp [100 ];
724
730
parray * pgdata_files = NULL ;
725
731
parray * dest_files = NULL ;
726
732
parray * external_dirs = NULL ;
@@ -743,9 +749,6 @@ restore_chain(pgBackup *dest_backup, parray *parent_chain,
743
749
time_t start_time , end_time ;
744
750
745
751
/* Preparations for actual restoring */
746
- time2iso (timestamp , lengthof (timestamp ), dest_backup -> start_time , false);
747
- elog (INFO , "Restoring the database from backup at %s" , timestamp );
748
-
749
752
dest_files = get_backup_filelist (dest_backup , true);
750
753
751
754
/* Lock backup chain and make sanity checks */
0 commit comments