Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions bin/ghe-restore
Original file line number Diff line number Diff line change
Expand Up @@ -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 ..."

Expand Down Expand Up @@ -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