Skip to content

Commit 077a10e

Browse files
committed
Add comments
1 parent 97102ce commit 077a10e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

share/github-backup-utils/ghe-rsync-size

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ transfer_size()
5959
;;
6060
esac
6161

62+
# Check if instance is cluster and fetch appropriate primary host for the different components
6263
ghe-ssh "$host" "[ -f /etc/github/cluster ]"
6364
cluster_status=$?
6465

@@ -83,6 +84,7 @@ transfer_size()
8384
host=$(echo "$cluster_nodes_output" | grep "$cluster_host" | awk '{print $2}' | head -1)
8485
fi
8586

87+
# Get file transfer size estimates
8688
if [ -d "${GHE_DATA_DIR}/current/$1" ]; then
8789
total_file_size=$(ghe-rsync -arn --stats \
8890
-e "ssh -q $GHE_EXTRA_SSH_OPTS -p 122 -l admin" \

0 commit comments

Comments
 (0)