Merge branch 'master' into suppress-secret-scanning-encrypted-secrets-warning

This commit is contained in:
Robert Bolender 2023-08-21 22:39:09 -07:00 коммит произвёл GitHub
Родитель 8bd786e011 1d88f9dfb0
Коммит 09bd75b9f3
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 36 добавлений и 32 удалений

Просмотреть файл

@ -54,38 +54,7 @@ export CALLING_SCRIPT="ghe-backup"
# shellcheck source=share/github-backup-utils/ghe-backup-config
. "$( dirname "${BASH_SOURCE[0]}" )/../share/github-backup-utils/ghe-backup-config"
# Setup progress tracking
init-progress
export PROGRESS_TOTAL=14 # Minimum number of steps in backup is 14
echo "$PROGRESS_TOTAL" > /tmp/backup-utils-progress-total
export PROGRESS_TYPE="Backup"
echo "$PROGRESS_TYPE" > /tmp/backup-utils-progress-type
export PROGRESS=0 # Used to track progress of backup
echo "$PROGRESS" > /tmp/backup-utils-progress
OPTIONAL_STEPS=0
# Backup actions+mssql
if ghe-ssh "$GHE_HOSTNAME" -- 'ghe-config --true app.actions.enabled'; then
OPTIONAL_STEPS=$((OPTIONAL_STEPS + 2))
fi
# Backup fsck
if [ "$GHE_BACKUP_FSCK" = "yes" ]; then
OPTIONAL_STEPS=$((OPTIONAL_STEPS + 1))
fi
# Backup minio
if ghe-ssh "$GHE_HOSTNAME" -- 'ghe-config --true app.minio.enabled'; then
OPTIONAL_STEPS=$((OPTIONAL_STEPS + 1))
fi
# Backup pages
if [ "$GHE_BACKUP_PAGES" != "no" ]; then
OPTIONAL_STEPS=$((OPTIONAL_STEPS + 1))
fi
PROGRESS_TOTAL=$((OPTIONAL_STEPS + PROGRESS_TOTAL)) # Minimum number of steps in backup is 14
echo "$PROGRESS_TOTAL" > /tmp/backup-utils-progress-total
# Check to make sure moreutils parallel is installed and working properly
ghe_parallel_check
@ -186,9 +155,44 @@ fi
# Perform a host connection check and establish the remote appliance version.
# The version is available in the GHE_REMOTE_VERSION variable and also written
# to a version file in the snapshot directory itself.
# ghe_remote_version_required should be run before any other instances of ghe-ssh
# to ensure that there are no problems with host key verification.
ghe_remote_version_required
echo "$GHE_REMOTE_VERSION" > version
# Setup progress tracking
init-progress
export PROGRESS_TOTAL=14 # Minimum number of steps in backup is 14
echo "$PROGRESS_TOTAL" > /tmp/backup-utils-progress-total
export PROGRESS_TYPE="Backup"
echo "$PROGRESS_TYPE" > /tmp/backup-utils-progress-type
export PROGRESS=0 # Used to track progress of backup
echo "$PROGRESS" > /tmp/backup-utils-progress
OPTIONAL_STEPS=0
# Backup actions+mssql
if ghe-ssh "$GHE_HOSTNAME" -- 'ghe-config --true app.actions.enabled'; then
OPTIONAL_STEPS=$((OPTIONAL_STEPS + 2))
fi
# Backup fsck
if [ "$GHE_BACKUP_FSCK" = "yes" ]; then
OPTIONAL_STEPS=$((OPTIONAL_STEPS + 1))
fi
# Backup minio
if ghe-ssh "$GHE_HOSTNAME" -- 'ghe-config --true app.minio.enabled'; then
OPTIONAL_STEPS=$((OPTIONAL_STEPS + 1))
fi
# Backup pages
if [ "$GHE_BACKUP_PAGES" != "no" ]; then
OPTIONAL_STEPS=$((OPTIONAL_STEPS + 1))
fi
PROGRESS_TOTAL=$((OPTIONAL_STEPS + PROGRESS_TOTAL)) # Minimum number of steps in backup is 14
echo "$PROGRESS_TOTAL" > /tmp/backup-utils-progress-total
# check that incremental settings are valid if set
is_inc=$(is_incremental_backup_feature_on)

Просмотреть файл

@ -5,7 +5,7 @@ storage and must have network connectivity with the GitHub Enterprise Server app
## Backup host requirements
Backup host software requirements are modest: Linux or other modern Unix operating system (Ubuntu is highly recommended) with [bash][1], [git][2], [OpenSSH][3] 5.6 or newer, [rsync][4] v2.6.4 or newer* (see [below](april-2023-update-of-rsync-requirements) for exceptions), [jq][11] v1.5 or newer, and [bc][12] v1.07 or newer.
Backup host software requirements are modest: Linux or other modern Unix operating system (Ubuntu is highly recommended) with [bash][1], [git][2], [OpenSSH][3] 5.6 or newer, [rsync][4] v2.6.4 or newer* (see [below](#april-2023-update-of-rsync-requirements) for exceptions), [jq][11] v1.5 or newer, and [bc][12] v1.07 or newer.
The parallel backup and restore feature will require [GNU awk][10] and [moreutils][9] to be installed.