We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8b88f50 + c6b6ba2 commit c04330bCopy full SHA for c04330b
bin/ghe-backup
@@ -139,6 +139,8 @@ fi
139
140
echo "$GHE_SNAPSHOT_TIMESTAMP $$" > ../in-progress
141
142
+START_TIME=$(date +%s)
143
+echo 'Start time:' $START_TIME
144
echo "Starting backup of $GHE_HOSTNAME with backup-utils v$BACKUP_UTILS_VERSION in snapshot $GHE_SNAPSHOT_TIMESTAMP"
145
146
# Perform a host connection check and establish the remote appliance version.
@@ -254,6 +256,10 @@ if [ -z "$failures" ]; then
254
256
ghe-prune-snapshots
255
257
fi
258
259
+END_TIME=$(date +%s)
260
+echo 'End time:' $END_TIME
261
+echo 'Runtime:' $(($END_TIME - $START_TIME)) 'seconds'
262
+
263
echo "Completed backup of $GHE_HOSTNAME in snapshot $GHE_SNAPSHOT_TIMESTAMP at $(date +"%H:%M:%S")"
264
265
# Exit non-zero and list the steps that failed.
0 commit comments