From e86484d92a30d70b6aa3c40b482d582da6cfd841 Mon Sep 17 00:00:00 2001 From: John Claus Date: Sat, 1 Aug 2020 11:28:16 -0600 Subject: [PATCH 1/2] Added basic timing around the ghe-restore process --- bin/ghe-restore | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/ghe-restore b/bin/ghe-restore index 87f3acb18..f9e574b3a 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,6 +402,10 @@ 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 From 0c6642cc442dabf30098839e52577943a4f7904a Mon Sep 17 00:00:00 2001 From: John Claus Date: Tue, 4 Aug 2020 13:28:58 -0600 Subject: [PATCH 2/2] Bump --- bin/ghe-restore | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/ghe-restore b/bin/ghe-restore index f9e574b3a..17749e12b 100755 --- a/bin/ghe-restore +++ b/bin/ghe-restore @@ -411,3 +411,4 @@ 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 +