File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,8 @@ if $instance_configured && ! $force; then
174
174
fi
175
175
176
176
# Log restore start message locally and in /var/log/syslog on remote instance
177
+ START_TIME=$( date +%s)
178
+ echo ' Start time:' $START_TIME
177
179
echo " Starting restore of $GHE_HOSTNAME with backup-utils v$BACKUP_UTILS_VERSION from snapshot $GHE_RESTORE_SNAPSHOT "
178
180
ghe_remote_logger " Starting restore from $( hostname) with backup-utils v$BACKUP_UTILS_VERSION / snapshot $GHE_RESTORE_SNAPSHOT ..."
179
181
@@ -400,8 +402,13 @@ else
400
402
ghe-ssh " $GHE_HOSTNAME " -- /bin/sh 1>&3
401
403
fi
402
404
405
+ END_TIME=$( date +%s)
406
+ echo ' End time:' $END_TIME
407
+ echo ' Runtime:' $(( $END_TIME - $START_TIME )) ' seconds'
408
+
403
409
echo " Restore of $GHE_HOSTNAME from snapshot $GHE_RESTORE_SNAPSHOT finished."
404
410
405
411
if ! $instance_configured ; then
406
412
echo " To complete the restore process, please visit https://$hostname /setup/settings to review and save the appliance configuration."
407
413
fi
414
+
You can’t perform that action at this time.
0 commit comments