Skip to content

Commit 5ad5f10

Browse files
authored
Merge pull request #275 from github/sync-public-to-private
Sync public to private
2 parents 2c63957 + f5cc814 commit 5ad5f10

File tree

11 files changed

+20
-190
lines changed

11 files changed

+20
-190
lines changed

.github/workflows/stale-support-escalation.yml

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

.github/workflows/stale.yml

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

RELEASING.md

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

bin/ghe-backup

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ fi
148148
echo "$GHE_SNAPSHOT_TIMESTAMP $$" > ../in-progress
149149
echo "$GHE_SNAPSHOT_TIMESTAMP $$" > ${GHE_DATA_DIR}/in-progress-backup
150150

151+
START_TIME=$(date +%s)
152+
echo 'Start time:' $START_TIME
151153
echo "Starting backup of $GHE_HOSTNAME with backup-utils v$BACKUP_UTILS_VERSION in snapshot $GHE_SNAPSHOT_TIMESTAMP"
152154

153155
# Perform a host connection check and establish the remote appliance version.
@@ -263,6 +265,10 @@ if [ -z "$failures" ]; then
263265
ghe-prune-snapshots
264266
fi
265267

268+
END_TIME=$(date +%s)
269+
echo 'End time:' $END_TIME
270+
echo 'Runtime:' $(($END_TIME - $START_TIME)) 'seconds'
271+
266272
echo "Completed backup of $GHE_HOSTNAME in snapshot $GHE_SNAPSHOT_TIMESTAMP at $(date +"%H:%M:%S")"
267273

268274
# Exit non-zero and list the steps that failed.

bin/ghe-host-check

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ if [ $rc -ne 0 ]; then
6868
echo "$output" 1>&2
6969
echo "Error: ssh connection with '$host' failed" 1>&2
7070
echo "Note that your SSH key needs to be setup on $host as described in:" 1>&2
71-
echo "* https://enterprise.github.com/help/articles/adding-an-ssh-key-for-shell-access" 1>&2
71+
echo "* https://docs.github.com/enterprise-server/admin/configuration/configuring-your-enterprise/accessing-the-administrative-shell-ssh" 1>&2
7272
;;
7373
101)
7474
echo "Error: couldn't read GitHub Enterprise Server fingerprint on '$host' or this isn't a GitHub appliance." 1>&2
@@ -131,7 +131,7 @@ fi
131131

132132
# backup-utils 2.13 onwards limits support to the current and previous two releases
133133
# of GitHub Enterprise Server.
134-
supported_minimum_version="3.5.0"
134+
supported_minimum_version="3.6.0"
135135

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

bin/ghe-restore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#/ Note that the GitHub Enterprise host must be reachable and your SSH key must
77
#/ be setup as described in the following help article:
88
#/
9-
#/ <https://enterprise.github.com/help/articles/adding-an-ssh-key-for-shell-access>
9+
#/ <https://docs.github.com/enterprise-server/admin/configuration/configuring-your-enterprise/accessing-the-administrative-shell-ssh >
1010
#/
1111
#/ OPTIONS:
1212
#/ -c | --config Restore appliance settings and license in addition to
@@ -89,11 +89,11 @@ done
8989
start_cron () {
9090
echo "Starting cron ..."
9191
if $CLUSTER; then
92-
if ! ghe-ssh "$GHE_HOSTNAME" -- "ghe-cluster-each -- sudo service cron start"; then
92+
if ! ghe-ssh "$GHE_HOSTNAME" -- "ghe-cluster-each -- sudo timeout 120s service cron start"; then
9393
echo "* Warning: Failed to start cron on one or more nodes"
9494
fi
9595
else
96-
if ! ghe-ssh "$GHE_HOSTNAME" -- "sudo service cron start"; then
96+
if ! ghe-ssh "$GHE_HOSTNAME" -- "sudo timeout 120s service cron start"; then
9797
echo "* Warning: Failed to start cron"
9898
fi
9999
fi

debian/changelog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
github-backup-utils (3.8.0) focal; urgency=medium
2+
3+
-- Daniel Johnson <[email protected]> Tue, 07 Feb 2023 21:43:26 +0000
4+
15
github-backup-utils (3.7.0) UNRELEASED; urgency=medium
26

37

docs/requirements.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@ storage and must have network connectivity with the GitHub Enterprise Server app
66
## Backup host requirements
77

88
Backup host software requirements are modest: Linux or other modern Unix operating
9-
system with [bash][1], [git][2], [OpenSSH][3] 5.6 or newer, and [rsync][4] v2.6.4 or newer.
9+
system (Ubuntu is highly recommended) with [bash][1], [git][2], [OpenSSH][3] 5.6 or newer, [rsync][4] v2.6.4 or newer, and [jq][11] v1.5 or newer.
1010

1111
The parallel backup and restore feature will require [GNU awk][10] and [moreutils][9] to be installed.
1212

13-
We encourage the use of [Docker](docker.md) if your backup host doesn't meet these
14-
requirements, or if Docker is your preferred platform.
13+
We encourage the use of [Docker](docker.md), as it ensures compatible versions of the aforementioned software are available to backup-utils.
1514

1615
The backup host must be able to establish outbound network connections to the
1716
GitHub appliance over SSH. TCP port 122 is used to backup GitHub Enterprise Server.
@@ -79,3 +78,4 @@ Due to how some components of Backup Utilities (e.g. MSSQL) take incremental bac
7978
[8]: https://help.github.com/enterprise/admin/guides/installation/upgrade-requirements/
8079
[9]: https://joeyh.name/code/moreutils
8180
[10]: https://www.gnu.org/software/gawk
81+
[11]: https://stedolan.github.io/jq/

ownership.yaml

Lines changed: 0 additions & 49 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.7.0
1+
3.8.0

0 commit comments

Comments
 (0)