Skip to content

Commit 1a5a107

Browse files
authored
Update ghe-backup
Making suggested changes [here](#956 (review))
1 parent 9e2b52e commit 1a5a107

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

bin/ghe-backup

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ echo "$GHE_SNAPSHOT_TIMESTAMP $$" > ../in-progress
141141

142142
START_TIME=$(date +%s)
143143
echo 'Start time:' $START_TIME
144-
145144
echo "Starting backup of $GHE_HOSTNAME with backup-utils v$BACKUP_UTILS_VERSION in snapshot $GHE_SNAPSHOT_TIMESTAMP"
146145

147146
# Perform a host connection check and establish the remote appliance version.
@@ -257,6 +256,10 @@ if [ -z "$failures" ]; then
257256
ghe-prune-snapshots
258257
fi
259258

259+
END_TIME=$(date +%s)
260+
echo 'End time:' $END_TIME
261+
echo 'Runtime:' $(($END_TIME - $START_TIME)) 'seconds'
262+
260263
echo "Completed backup of $GHE_HOSTNAME in snapshot $GHE_SNAPSHOT_TIMESTAMP at $(date +"%H:%M:%S")"
261264

262265
# Exit non-zero and list the steps that failed.
@@ -273,9 +276,5 @@ fi
273276
echo "Checking for leaked ssh keys ..."
274277
ghe-detect-leaked-ssh-keys -s "$GHE_SNAPSHOT_DIR" || true
275278

276-
END_TIME=$(date +%s)
277-
echo 'End time:' $END_TIME
278-
echo 'Runtime:' $(($END_TIME - $START_TIME)) 'seconds'
279-
280279
# Make sure we exit zero after the conditional
281280
true

0 commit comments

Comments
 (0)