Skip to content

Commit a2ad32a

Browse files
committed
Merge remote-tracking branch 'upstream/master' into sync-with-public-repo
2 parents 03b2c22 + 5fe3243 commit a2ad32a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

bin/ghe-restore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,8 @@ if is_external_database_snapshot && ! $instance_configured && ! $FORCE; then
195195
fi
196196

197197
# Log restore start message locally and in /var/log/syslog on remote instance
198+
START_TIME=$(date +%s)
199+
echo 'Start time:' $START_TIME
198200
echo "Starting restore of $GHE_HOSTNAME with backup-utils v$BACKUP_UTILS_VERSION from snapshot $GHE_RESTORE_SNAPSHOT"
199201
ghe_remote_logger "Starting restore from $(hostname) with backup-utils v$BACKUP_UTILS_VERSION / snapshot $GHE_RESTORE_SNAPSHOT ..."
200202

@@ -448,8 +450,13 @@ else
448450
ghe-ssh "$GHE_HOSTNAME" -- /bin/sh 1>&3
449451
fi
450452

453+
END_TIME=$(date +%s)
454+
echo 'End time:' $END_TIME
455+
echo 'Runtime:' $(($END_TIME - $START_TIME)) 'seconds'
456+
451457
echo "Restore of $GHE_HOSTNAME from snapshot $GHE_RESTORE_SNAPSHOT finished."
452458

453459
if ! $instance_configured; then
454460
echo "To complete the restore process, please visit https://$hostname/setup/settings to review and save the appliance configuration."
455461
fi
462+

0 commit comments

Comments
 (0)