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.
1 parent 97102ce commit 077a10eCopy full SHA for 077a10e
share/github-backup-utils/ghe-rsync-size
@@ -59,6 +59,7 @@ transfer_size()
59
;;
60
esac
61
62
+ # Check if instance is cluster and fetch appropriate primary host for the different components
63
ghe-ssh "$host" "[ -f /etc/github/cluster ]"
64
cluster_status=$?
65
@@ -83,6 +84,7 @@ transfer_size()
83
84
host=$(echo "$cluster_nodes_output" | grep "$cluster_host" | awk '{print $2}' | head -1)
85
fi
86
87
+ # Get file transfer size estimates
88
if [ -d "${GHE_DATA_DIR}/current/$1" ]; then
89
total_file_size=$(ghe-rsync -arn --stats \
90
-e "ssh -q $GHE_EXTRA_SSH_OPTS -p 122 -l admin" \
0 commit comments