Skip to content

Commit 9e26501

Browse files
release-controller[bot]release-controller[bot]
authored and
release-controller[bot]
committed
3.17.0 release
1 parent a0d3fe6 commit 9e26501

File tree

4 files changed

+143
-42
lines changed

4 files changed

+143
-42
lines changed

docs/backup.config-example

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
# GitHub Enterprise Server backup configuration file
2+
3+
# The hostname of the GitHub Enterprise Server appliance to back up. The host
4+
# must be reachable via SSH from the backup host.
5+
GHE_HOSTNAME="github.example.com"
6+
7+
# Path to where backup data is stored. By default this is the "data"
8+
# directory next to this file but can be set to an absolute path
9+
# elsewhere for backing up to a separate partition / mount point.
10+
GHE_DATA_DIR="data"
11+
12+
# The number of backup snapshots to retain. Old snapshots are pruned after each
13+
# successful ghe-backup run. This option should be tuned based on the frequency
14+
# of scheduled backup runs. If backups are scheduled hourly, snapshots will be
15+
# available for the past N hours; if backups are scheduled daily, snapshots will
16+
# be available for the past N days ...
17+
GHE_NUM_SNAPSHOTS=10
18+
19+
# Pruning snapshots can be scheduled outside of the backup process.
20+
# If set to 'yes', snapshots will not be pruned by ghe-backup.
21+
# Instead, ghe-prune-snapshots will need to be invoked separately via cron
22+
#GHE_PRUNING_SCHEDULED=yes
23+
24+
# If GHE_ROUTE_VERIFICATION is set to true then ghe-repository-backup and
25+
# ghe-storage-backup will issue a warning if the repositories and objects in
26+
# the backup do not match the pre-backup inventory of routes.
27+
#GHE_ROUTE_VERIFICATION=false
28+
29+
# If GHE_MANAGE_CONSOLE_PW_RESTORE is set to false then management-console password
30+
# will not be restored from backed-up snapshot data, it is restored by default
31+
#GHE_MANAGE_CONSOLE_PW_RESTORE=true
32+
33+
# If GHE_SKIP_CHECKS is set to true (or if --skip-checks is used with ghe-backup) then ghe-host-check
34+
# disk space validation and software version checks on the backup-host will be disabled.
35+
#GHE_SKIP_CHECKS=false
36+
37+
# Cluster filesystem to check if it's writable as part of ghe-host-check
38+
# By default it is /data/user/tmp but can be updated if needed
39+
#GHE_FILE_SYSTEM_WRITE_CHECK="/data/user/tmp"
40+
41+
# The hostname of the GitHub appliance to restore. If you've set up a separate
42+
# GitHub appliance to act as a standby for recovery, specify its IP or hostname
43+
# here. The host to restore to may also be specified directly when running
44+
# ghe-restore so use of this variable isn't strictly required.
45+
#
46+
#GHE_RESTORE_HOST="github-standby.example.com"
47+
48+
# If set to 'yes', ghe-restore will omit the restore of audit logs.
49+
#
50+
#GHE_RESTORE_SKIP_AUDIT_LOGS=no
51+
52+
# If set to 'yes', backup and restore of Elasticsearch indices will be skipped
53+
#
54+
#GHE_SKIP_SEARCH_INDICES=no
55+
56+
# When verbose output is enabled with `-v`, it's written to stdout by default. If
57+
# you'd prefer it to be written to a separate file, set this option.
58+
#
59+
#GHE_VERBOSE_LOG="/var/log/backup-verbose.log"
60+
61+
# Any extra options passed to the SSH command.
62+
# In a single instance environment, nothing is required by default.
63+
# In a clustering environment, "-i abs-path-to-ssh-private-key" is required.
64+
#
65+
#GHE_EXTRA_SSH_OPTS=""
66+
#
67+
# All backup processes are ran with the lowest priority for scheduling by default.
68+
# To change throttling behaviour/allow higher priority for backup processes, set higher values for following variables.
69+
# default value for GHENICE=nice -n 19
70+
# default value for GHE_IONICE=ionice -c 3
71+
#GHE_NICE=""
72+
#GHE_IONICE=""
73+
74+
# Any extra options passed to the rsync command. Nothing required by default.
75+
#
76+
#GHE_EXTRA_RSYNC_OPTS=""
77+
78+
# If set to 'yes', rsync will be set to use compression during backups and restores transfers. Defaults to 'no'.
79+
#
80+
#GHE_RSYNC_COMPRESSION_ENABLED=yes
81+
82+
# If enabled and set to 'no', rsync warning message during backups will be suppressed.
83+
#RSYNC_WARNING=no
84+
85+
86+
# If set to 'yes', logging output will be colorized.
87+
#
88+
#OUTPUT_COLOR=no
89+
90+
# If set to 'no', GHE_DATA_DIR will not be created automatically
91+
# and restore/backup will exit 8
92+
#
93+
#GHE_CREATE_DATA_DIR=yes
94+
95+
# If set to 'yes', git fsck will run on the repositories
96+
# and print some additional info.
97+
#
98+
# WARNING: do not enable this, only useful for debugging/development
99+
#GHE_BACKUP_FSCK=no
100+
101+
# Cadence of MSSQL backups
102+
# <full>,<differential>,<transactionlog> all in minutes
103+
# e.g.
104+
# - Full backup every week (10080 minutes)
105+
# - Differential backup every day (1440 minutes)
106+
# - Transactionlog backup every 15 minutes
107+
#
108+
#GHE_MSSQL_BACKUP_CADENCE=10080,1440,15
109+
110+
# If set to 'yes', ghe-backup jobs will run in parallel. Defaults to 'no'.
111+
#
112+
#GHE_PARALLEL_ENABLED=yes
113+
114+
# Sets the maximum number of jobs to run in parallel. Defaults to the number
115+
# of available processing units on the machine.
116+
#
117+
#GHE_PARALLEL_MAX_JOBS=2
118+
119+
# Sets the maximum number of rsync jobs to run in parallel. Defaults to the
120+
# configured GHE_PARALLEL_MAX_JOBS, or the number of available processing
121+
# units on the machine.
122+
#
123+
# GHE_PARALLEL_RSYNC_MAX_JOBS=3
124+
125+
# When jobs are running in parallel wait as needed to avoid starting new jobs
126+
# when the system's load average is not below the specified percentage. Defaults to
127+
# unrestricted.
128+
#
129+
#GHE_PARALLEL_MAX_LOAD=50
130+
131+
# When running an external mysql database, run this script to trigger a MySQL backup
132+
# rather than attempting to backup via backup-utils directly.
133+
#EXTERNAL_DATABASE_BACKUP_SCRIPT="/bin/false"
134+
135+
# When running an external mysql database, run this script to trigger a MySQL restore
136+
# rather than attempting to backup via backup-utils directly.
137+
#EXTERNAL_DATABASE_RESTORE_SCRIPT="/bin/false"
138+
139+
# If set to 'yes', Pages data will be included in backup and restore. Defaults to 'yes'
140+
#GHE_BACKUP_PAGES=no

docs/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@
3737
3838
[1]: https://github.com/github/backup-utils/releases
3939
[2]: https://github.com/github/backup-utils/releases/tag/v2.11.4
40-
[3]: https://github.com/github/enterprise-backup-site/blob/master/backup.config-example
40+
[3]: https://github.com/github/backup-utils/blob/master/docs/backup.config-example
4141
[4]: https://docs.github.com/enterprise-server/admin/configuration/configuring-your-enterprise/accessing-the-administrative-shell-ssh

docs/incremental-mysql-backups-and-restores.md

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

docs/usage.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ These commands are run on the host you [installed][1] Backup Utilities on.
1313

1414
You can supply your own configuration file or use the example configuration file as a template where you can set up your environment for backing up and restoring.
1515

16-
An example configuration file with documentation on possible settings can found in [backup.config-example](../backup.config-example).
16+
An example configuration file with documentation on possible settings can found in [backup.config-example](backup.config-example).
1717

1818
There are a number of command-line options that can also be passed to the `ghe-restore` command. Of particular note, if you use an external MySQL service but are restoring from a snapshot prior to enabling this, or vice versa, you must migrate the MySQL data outside of the context of backup-utils first, then pass the `--skip-mysql` flag to `ghe-restore`.
1919

@@ -112,8 +112,7 @@ Please refer to [GHES Documentation](https://docs.github.com/en/enterprise-serve
112112

113113
## Incremental MySQL Backups and Restores
114114

115-
If you are interested in performing incremental backups of the MySQL data in your GitHub Enterprise Server instance, see [Incremental MySQL Backups and Restores](incremental-mysql-backups-and-restores.md) for details.
116-
115+
Incremental MySQL backup has been deprecated since 3.17 due to data integrity concerns. Restoring backups created with incremental backups remains supported for compatibility reasons.
117116
## Rsync compression
118117

119118
From backup-utils v3.11.0 onwards, we have disabled rsync compression by default to improve transfer speed and reduce CPU usage during the transfer process.

0 commit comments

Comments
 (0)