Skip to content

Commit 3fe4656

Browse files
authored
Merge pull request #217 from github/sync-public-into-private
Sync backup-utils public into private
2 parents 81159e9 + edf54fe commit 3fe4656

File tree

14 files changed

+27
-152
lines changed

14 files changed

+27
-152
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ jobs:
1414
run: |
1515
sudo apt-get update -y
1616
sudo apt-get install -y devscripts debhelper moreutils fakeroot jq pigz
17-
wget "https://github.com/koalaman/shellcheck/releases/download/v0.7.0/shellcheck-v0.7.0.linux.x86_64.tar.xz"
18-
tar --xz -xvf "shellcheck-v0.7.0.linux.x86_64.tar.xz"
19-
sudo cp shellcheck-v0.7.0/shellcheck /usr/bin/shellcheck
17+
wget "https://github.com/koalaman/shellcheck/releases/download/latest/shellcheck-latest.linux.x86_64.tar.xz"
18+
tar --xz -xvf "shellcheck-latest.linux.x86_64.tar.xz"
19+
sudo cp shellcheck-latest/shellcheck /usr/bin/shellcheck
2020
if: matrix.os != 'macos-latest'
2121
- name: Install Dependencies (macOS)
2222
run: |

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
This repository includes backup and recovery utilities for
44
[GitHub Enterprise Server][1].
55

6-
**UPDATE**: The new parallel backup and restore beta feature will require [GNU awk](https://www.gnu.org/software/gawk) and [moreutils](https://joeyh.name/code/moreutils) to be installed.
6+
**UPDATE**: The new parallel backup and restore beta feature will require [GNU awk](https://www.gnu.org/software/gawk) and [moreutils](https://joeyh.name/code/moreutils) to be installed. Note that on some distributions/platforms, the `moreutils-parallel` package is separate from `moreutils` and must be installed on its own.
77

88
**Note**: the [GitHub Enterprise Server version requirements][2] have
99
changed starting with Backup Utilities v2.13.0, released on 27 March 2018.

bin/ghe-backup

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,6 @@ commands+=("
203203
echo \"Backing up audit log ...\"
204204
ghe-backup-es-audit-log || printf %s \"audit-log \" >> \"$failures_file\"")
205205

206-
commands+=("
207-
echo \"Backing up hookshot logs ...\"
208-
ghe-backup-es-hookshot || printf %s \"hookshot \" >> \"$failures_file\"")
209-
210206
commands+=("
211207
echo \"Backing up Git repositories ...\"
212208
ghe-backup-repositories || printf %s \"repositories \" >> \"$failures_file\"")

bin/ghe-host-check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ fi
130130

131131
# backup-utils 2.13 onwards limits support to the current and previous two releases
132132
# of GitHub Enterprise Server.
133-
supported_minimum_version="2.21.0"
133+
supported_minimum_version="2.22.0"
134134

135135
if [ "$(version $version)" -ge "$(version $supported_minimum_version)" ]; then
136136
supported=1

bin/ghe-restore

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ if test -f $GHE_RESTORE_SNAPSHOT_PATH/es-scan-complete; then
380380
ghe-ssh "$GHE_HOSTNAME" -- "sudo touch $GHE_REMOTE_DATA_USER_DIR/common/es-scan-complete"
381381
fi
382382

383-
# Restore exported audit and hookshot logs to 2.12.9 and newer single nodes and
383+
# Restore exported audit logs to 2.12.9 and newer single nodes and
384384
# all releases of cluster
385385
if $CLUSTER || [ "$(version $GHE_REMOTE_VERSION)" -ge "$(version 2.12.9)" ]; then
386386
if [[ "$GHE_RESTORE_SKIP_AUDIT_LOGS" = "yes" ]]; then
@@ -391,9 +391,6 @@ if $CLUSTER || [ "$(version $GHE_REMOTE_VERSION)" -ge "$(version 2.12.9)" ]; the
391391
ghe-restore-es-audit-log \"$GHE_HOSTNAME\" 1>&3")
392392
fi
393393

394-
commands+=("
395-
echo \"Restoring hookshot logs ...\"
396-
ghe-restore-es-hookshot \"$GHE_HOSTNAME\" 1>&3")
397394
fi
398395

399396
if [ "$GHE_PARALLEL_ENABLED" = "yes" ]; then

debian/changelog

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
github-backup-utils (3.1.0~rc1) UNRELEASED; urgency=medium
2+
3+
* Update repository backups to use ghe-gc-* for lock file management #188
4+
* A faster way to restore storage blobs (clusters) #212
5+
* Bug fix: Be more specific in restore routes globbing #715
6+
* fix(docker): add coreutils to get flags for date #717
7+
* Add backup cadence variable to the appliance #719
8+
* Fix is_default_external_database_snapshot function #720
9+
10+
-- Zachary Mark <[email protected]> Thu, 06 May 2021 17:11:18 +0000
11+
112
github-backup-utils (3.0.0) UNRELEASED; urgency=medium
213

314
* Fix restoring the password pepper for already configured instances #683

share/github-backup-utils/ghe-backup-es-hookshot

Lines changed: 0 additions & 49 deletions
This file was deleted.

share/github-backup-utils/ghe-restore-es-hookshot

Lines changed: 0 additions & 63 deletions
This file was deleted.

share/github-backup-utils/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.0.0
1+
3.1.0.rc1

test/bin/curl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Fake curl command stub for tests.
44
set -e
55

6-
# Return empty list of indexes for ghe-backup-es-audit-log and ghe-backup-es-hookshot
6+
# Return empty list of indexes for ghe-backup-es-audit-log
77
if echo "$@" | grep -q '_cat/indices/'; then
88
exit 0
99
# Exit with non-zero code to mimic a non-existant index

0 commit comments

Comments
 (0)