diff --git a/bin/ghe-restore b/bin/ghe-restore index 87f3acb18..17749e12b 100755 --- a/bin/ghe-restore +++ b/bin/ghe-restore @@ -174,6 +174,8 @@ if $instance_configured && ! $force; then fi # Log restore start message locally and in /var/log/syslog on remote instance +START_TIME=$(date +%s) +echo 'Start time:' $START_TIME echo "Starting restore of $GHE_HOSTNAME with backup-utils v$BACKUP_UTILS_VERSION from snapshot $GHE_RESTORE_SNAPSHOT" ghe_remote_logger "Starting restore from $(hostname) with backup-utils v$BACKUP_UTILS_VERSION / snapshot $GHE_RESTORE_SNAPSHOT ..." @@ -400,8 +402,13 @@ else ghe-ssh "$GHE_HOSTNAME" -- /bin/sh 1>&3 fi +END_TIME=$(date +%s) +echo 'End time:' $END_TIME +echo 'Runtime:' $(($END_TIME - $START_TIME)) 'seconds' + echo "Restore of $GHE_HOSTNAME from snapshot $GHE_RESTORE_SNAPSHOT finished." if ! $instance_configured; then echo "To complete the restore process, please visit https://$hostname/setup/settings to review and save the appliance configuration." fi +