Skip to content

Commit a5dee7f

Browse files
committed
Merge branch 'master' of github.com:github/backup-utils into lildude/merge-update
2 parents e867bd9 + 322791e commit a5dee7f

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed

debian/changelog

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
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+
110
github-backup-utils (2.10.0) UNRELEASED; urgency=medium
211

312
* Include the user data directory in the benchmark name #311

share/github-backup-utils/ghe-backup-es-audit-log

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ if ! indices=$(ghe-ssh "$host" "curl -s \"localhost:$es_port/_cat/indices/audit_
3131
exit 1
3232
fi
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+
3441
current_index=audit_log-$(ghe-ssh "$host" 'date +"%Y-%m"')
3542

3643
for index in $indices; do

share/github-backup-utils/ghe-ssh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ if echo "$*" | grep "[|;]" >/dev/null || [ $(echo "$*" | wc -l) -gt 1 ]; then
5858
fi
5959

6060
if [ -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

share/github-backup-utils/ghe-ssh-config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ proxy_user="${proxy_host%@*}"
2525

2626
opts="$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

3030
for host in $hosts; do
3131
cat <<EOF

0 commit comments

Comments
 (0)