Skip to content

Commit fba03af

Browse files
authored
Merge branch 'master' into patch-1
2 parents 6c2b237 + 444246f commit fba03af

File tree

13 files changed

+36
-34
lines changed

13 files changed

+36
-34
lines changed

README.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,33 @@
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. Note that on some distributions/platforms, the `moreutils-parallel` package is separate from `moreutils` and must be installed on its own.
6+
**Note**: The parallel backup and restore 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.
1010

11-
### Features
11+
## Features
1212

1313
Backup Utilities implement a number of advanced capabilities for backup
1414
hosts, built on top of the backup and restore features already included in
1515
GitHub Enterprise Server.
1616

17-
- Complete GitHub Enterprise Server backup and recovery system via two simple
17+
- Complete GitHub Enterprise Server backup and recovery system via two simple
1818
utilities:<br>`ghe-backup` and `ghe-restore`.
19-
- Online backups. The GitHub appliance need not be put in maintenance mode for
19+
- Online backups. The GitHub appliance need not be put in maintenance mode for
2020
the duration of the backup run.
21-
- Incremental backup of Git repository data. Only changes since the last
21+
- Incremental backup of Git repository data. Only changes since the last
2222
snapshot are transferred, leading to faster backup runs and lower network
2323
bandwidth and machine utilization.
24-
- Efficient snapshot storage. Only data added since the previous snapshot
24+
- Efficient snapshot storage. Only data added since the previous snapshot
2525
consumes new space on the backup host.
26-
- Multiple backup snapshots with configurable retention periods.
27-
- Backup commands run under the lowest CPU/IO priority on the GitHub appliance,
26+
- Multiple backup snapshots with configurable retention periods.
27+
- Backup commands run under the lowest CPU/IO priority on the GitHub appliance,
2828
reducing performance impact while backups are in progress.
29-
- Runs under most Linux/Unix environments.
30-
- MIT licensed, open source software maintained by GitHub, Inc.
29+
- Runs under most Linux/Unix environments.
30+
- MIT licensed, open source software maintained by GitHub, Inc.
3131

32-
### Documentation
32+
## Documentation
3333

3434
- **[Requirements](docs/requirements.md)**
3535
- **[Backup host requirements](docs/requirements.md#backup-host-requirements)**
@@ -42,7 +42,7 @@ GitHub Enterprise Server.
4242
- **[How does Backup Utilities differ from a High Availability replica?](docs/faq.md)**
4343
- **[Docker](docs/docker.md)**
4444

45-
### Support
45+
## Support
4646

4747
If you find a bug or would like to request a feature in Backup Utilities, please
4848
open an issue or pull request on this repository. If you have a question related
@@ -53,3 +53,4 @@ instead.
5353
[1]: https://github.com/enterprise
5454
[2]: docs/requirements.md#github-enterprise-version-requirements
5555
[3]: https://support.github.com/
56+

RELEASING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ For example, Backup Utilities 2.13.0 can be used to backup and restore all patch
66

77
There is no need to align Backup Utilities patch releases with GitHub Enterprise Server patch releases.
88

9-
When making a `.0` release, you will need to specify the minimum supported version of GitHub Enterprise Server that that release supports.
9+
When making a `.0` release, you will need to specify the minimum supported version of GitHub Enterprise Server that release supports.
1010

1111
Only repo administrator is allowed to run the release script, otherwise it will fail.
1212

STYLEGUIDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ rsync /data/user/db remote:/data/user/db
165165
---
166166
##### Use lowercase and uppercase variable names
167167

168-
Use lowercase variables for locals and internal veriables, and uppercase for variables inherited or exported via the environment
168+
Use lowercase variables for locals and internal variables, and uppercase for variables inherited or exported via the environment
169169

170170
```bash
171171
#!/usr/bin/env bash

backup.config-example

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,27 +64,23 @@ GHE_NUM_SNAPSHOTS=10
6464

6565
# If set to 'yes', ghe-backup jobs will run in parallel. Defaults to 'no'.
6666
#
67-
# WARNING: this feature is in beta.
6867
#GHE_PARALLEL_ENABLED=yes
6968

7069
# Sets the maximum number of jobs to run in parallel. Defaults to the number
7170
# of available processing units on the machine.
7271
#
73-
# WARNING: this feature is in beta.
7472
#GHE_PARALLEL_MAX_JOBS=2
7573

7674
# Sets the maximum number of rsync jobs to run in parallel. Defaults to the
7775
# configured GHE_PARALLEL_MAX_JOBS, or the number of available processing
7876
# units on the machine.
7977
#
80-
# WARNING: this feature is in beta.
8178
# GHE_PARALLEL_RSYNC_MAX_JOBS=3
8279

8380
# When jobs are running in parallel wait as needed to avoid starting new jobs
8481
# when the system's load average is not below the specified percentage. Defaults to
8582
# unrestricted.
8683
#
87-
# WARNING: this feature is in beta.
8884
#GHE_PARALLEL_MAX_LOAD=50
8985

9086
# When running an external mysql database, run this script to trigger a MySQL backup

bin/ghe-host-check

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ port=$(ssh_port_part "$host")
5353
hostname=$(ssh_host_part "$host")
5454

5555
set +e
56-
# ghe-negotiate-version verifies if the target is a Github Enterprise Server instance
56+
# ghe-negotiate-version verifies if the target is a GitHub Enterprise Server instance
5757
output=$(echo "ghe-negotiate-version backup-utils $BACKUP_UTILS_VERSION" | ghe-ssh -o BatchMode=no $options $host -- /bin/sh 2>&1)
5858
rc=$?
5959
set -e
@@ -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.4.0"
134+
supported_minimum_version="3.5.0"
135135

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

debian/changelog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
github-backup-utils (3.7.0) UNRELEASED; urgency=medium
2+
3+
4+
-- Devin Dooley <[email protected]> Tue, 25 Oct 2022 00:35:38 +0000
5+
16
github-backup-utils (3.6.0) UNRELEASED; urgency=medium
27

38

docs/getting-started.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
* In a clustering environment, the `GHE_EXTRA_SSH_OPTS` key must be configured
3232
with the `-i <abs path to private key>` SSH option.
3333

34-
3. Add the backup host's SSH key to the GitHub appliance as an *Authorized SSH
35-
key*. See [Adding your SSH key to the ssh-agent][4] for instructions.
34+
3. Add the backup host's SSH public key to the GitHub Enterprise Server appliance, in order to grant it administrative shell access.
35+
See [Accessing the GitHub Enterprise Server administrative shell (SSH)][4] for instructions.
3636
3737
4. Run `bin/ghe-host-check` to verify SSH connectivity with the GitHub
3838
appliance.
@@ -42,4 +42,4 @@
4242
[1]: https://github.com/github/backup-utils/releases
4343
[2]: https://github.com/github/backup-utils/releases/tag/v2.11.4
4444
[3]: https://github.com/github/enterprise-backup-site/blob/master/backup.config-example
45-
[4]: https://docs.github.com/enterprise-server/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent#adding-your-ssh-key-to-the-ssh-agent
45+
[4]: https://docs.github.com/enterprise-server/admin/configuration/configuring-your-enterprise/accessing-the-administrative-shell-ssh

docs/requirements.md

Lines changed: 5 additions & 5 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

11-
The new parallel backup and restore beta feature will require [GNU awk][10] and [moreutils][9] to be installed.
11+
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.
@@ -67,7 +66,7 @@ be running GitHub Enterprise Server 2.12.x or 2.13.x. You can't restore a snapsh
6766

6867
Using multiple backup hosts or backup configurations is not currently recommended.
6968

70-
Due to how some components of Backup Utiltiies (e.g. MSSQL) take incremental backups, running another instance of Backup Utilities may result in unrestorable snapshots as data may be split across backup hosts. If you still wish to have multiple instances of Backup Utilties for redundancy purposes or to run at different frequencies, ensure that they share the same `GHE_DATA_DIR` backup directory.
69+
Due to how some components of Backup Utilities (e.g. MSSQL) take incremental backups, running another instance of Backup Utilities may result in unrestorable snapshots as data may be split across backup hosts. If you still wish to have multiple instances of Backup Utilities for redundancy purposes or to run at different frequencies, ensure that they share the same `GHE_DATA_DIR` backup directory.
7170

7271
[1]: https://www.gnu.org/software/bash/
7372
[2]: https://git-scm.com/
@@ -79,3 +78,4 @@ Due to how some components of Backup Utiltiies (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/

docs/usage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ GitHub Actions enabled, the following steps are required:
100100

101101
1. Enable GitHub Actions on the replacement appliance and configure it to use the same GitHub Actions
102102
external storage configuration as the original appliance.
103-
2. Put replacement appliance into maintaince mode.
103+
2. Put replacement appliance into maintenance mode.
104104
3. Use `ghe-restore` to restore the backup.
105105
4. Re-register your self-hosted runners on the replacement appliance.
106106

script/release

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ def clean_up(version)
330330
`git pull --quiet origin #{GH_BASE_BRANCH} --prune`
331331
`git branch --quiet -D release-#{version} >/dev/null 2>&1`
332332
`git push --quiet origin :release-#{version} >/dev/null 2>&1`
333-
`git branch --quiet -D tmp-packging >/dev/null 2>&1`
333+
`git branch --quiet -D tmp-packaging >/dev/null 2>&1`
334334
end
335335

336336
#### All the action starts ####

0 commit comments

Comments
 (0)