File tree Expand file tree Collapse file tree 4 files changed +18
-2
lines changed
share/github-backup-utils Expand file tree Collapse file tree 4 files changed +18
-2
lines changed Original file line number Diff line number Diff line change 1+ github-backup-utils (2.11.0) UNRELEASED; urgency=medium
2+
3+ * Use calculated routes when backing up storage data from a cluster #318
4+ * Add SSH multiplexing support #321
5+ * Optimise route generation and finalisation during cluster restores #322
6+ * Prefer the SSH port specified on the command line #324
7+
8+ -- Colin Seymour <
[email protected] > Wed, 13 Sep 2017 16:31:20 +0000
9+
110github-backup-utils (2.10.0) UNRELEASED; urgency=medium
211
312 * Include the user data directory in the benchmark name #311
Original file line number Diff line number Diff line change @@ -31,6 +31,13 @@ if ! indices=$(ghe-ssh "$host" "curl -s \"localhost:$es_port/_cat/indices/audit_
3131 exit 1
3232fi
3333
34+ # Determine if the audit log migration has occurred or is needed.
35+ if echo ' set -o pipefail; ! test -e /data/user/common/es-scan-complete && test -f /usr/local/share/enterprise/run-audit-log-transitions.sh' | ghe-ssh " $host " /bin/bash; then
36+ if echo ' set -o pipefail; echo n | /usr/local/share/enterprise/run-audit-log-transitions.sh > /dev/null 2>&1 && touch /data/user/common/es-scan-complete' | ghe-ssh " $host " /bin/bash; then
37+ touch $GHE_SNAPSHOT_DIR /es-scan-complete
38+ fi
39+ fi
40+
3441current_index=audit_log-$( ghe-ssh " $host " ' date +"%Y-%m"' )
3542
3643for index in $indices ; do
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ if echo "$*" | grep "[|;]" >/dev/null || [ $(echo "$*" | wc -l) -gt 1 ]; then
5858fi
5959
6060if [ -z " $GHE_DISABLE_SSH_MUX " ]; then
61- controlpath=" $TMPDIR /.ghe-sshmux-$( echo -n " $user @$host :$port " | sha256sum | cut -c 1-8) "
61+ controlpath=" $TMPDIR /.ghe-sshmux-$( echo -n " $user @$host :$port " | git hash-object --stdin | cut -c 1-8) "
6262 opts=" -o ControlMaster=auto -o ControlPath=\" $controlpath \" -o ControlPersist=10m -o ServerAliveInterval=10 $opts "
6363 # Workaround for https://bugzilla.mindrot.org/show_bug.cgi?id=1988
6464 [ -S $controlpath ] || ssh -f -p $port $opts -o BatchMode=yes " $host " -- /bin/true 1> /dev/null 2>&1 || true
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ proxy_user="${proxy_host%@*}"
2525
2626opts=" $GHE_EXTRA_SSH_OPTS "
2727
28- [ -z " $GHE_DISABLE_SSH_MUX " ] && opts=" -o ControlMaster=auto -o ControlPath=\" $TMPDIR /.ghe-sshmux-$( echo -n " $proxy_user @$proxy_host :$proxy_port " | sha256sum | cut -c 1-8) \" -o ControlPersist=10m -o ServerAliveInterval=10 $opts "
28+ [ -z " $GHE_DISABLE_SSH_MUX " ] && opts=" -o ControlMaster=auto -o ControlPath=\" $TMPDIR /.ghe-sshmux-$( echo -n " $proxy_user @$proxy_host :$proxy_port " | git hash-object --stdin | cut -c 1-8) \" -o ControlPersist=10m -o ServerAliveInterval=10 $opts "
2929
3030for host in $hosts ; do
3131 cat << EOF
You can’t perform that action at this time.
0 commit comments