Skip to content

Commit f205f40

Browse files
committed
Merge remote-tracking branch 'public/master'
2 parents c519bce + b38e182 commit f205f40

37 files changed

+127
-60
lines changed

bin/ghe-backup

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ set -e
99

1010
# Bring in the backup configuration
1111
cd $(dirname "$0")/..
12-
. libexec/ghe-backup-config
12+
. share/github-backup-utils/ghe-backup-config
1313

1414
# Used to record failed backup steps
1515
failures=

bin/ghe-host-check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set -e
66

77
# Bring in the backup configuration.
88
cd $(dirname "$0")/..
9-
. libexec/ghe-backup-config
9+
. share/github-backup-utils/ghe-backup-config
1010

1111
# Use the host provided on the command line if provided, or fallback on the
1212
# $GHE_HOSTNAME configured in backup.config when not present.

bin/ghe-restore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ set -e
2323

2424
# Bring in the backup configuration.
2525
cd $(dirname "$0")/..
26-
. libexec/ghe-backup-config
26+
. share/github-backup-utils/ghe-backup-config
2727

2828
# Parse arguments
2929
restore_settings=false

debian/changelog

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
github-backup-utils (1.1.0) UNRELEASED; urgency=medium
2+
3+
* Updated documentation on minimum GitHub Enterprise version requirements for
4+
online and incremental backups from v11.10.341 to at least v11.10.342.
5+
* The ghe-restore command now prompts for confirmation of the host to restore to
6+
before performing any destructive operation. This is to reduce the chances of
7+
restoring to the wrong host. The prompt may be bypassed in automated scenarios
8+
by providing the --force option.
9+
* Added a -c option to ghe-restore for restoring base appliance settings in
10+
addition to primary datastores. See ghe-restore --help for more information.
11+
* Added a note about disabling maintenance mode on the appliance after a
12+
successful ghe-restore operation.
13+
* Added support for filesystem layout changes and upgraded server components in
14+
* future versions of GitHub Enterprise.
15+
16+
-- Twan Wolthof <[email protected]> Sat, 18 Oct 2014 19:14:47 +0000
17+
18+
github-backup-utils (1.0.1) UNRELEASED; urgency=medium
19+
20+
* Initial release.
21+
22+
-- Twan Wolthof <[email protected]> Tue, 23 Sep 2014 08:34:55 +0000

debian/compat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
9

debian/control

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
Source: github-backup-utils
2+
Maintainer: Twan Wolthof <[email protected]>
3+
Section: misc
4+
Priority: optional
5+
Standards-Version: 3.9.2
6+
Build-Depends: debhelper (>= 9), git
7+
8+
Package: github-backup-utils
9+
Architecture: any
10+
Depends: ${misc:Depends}, rsync (>= 2.6.4)
11+
Description: Backup and recovery utilities for GitHub Enterprise
12+
The backup utilities implement a number of advanced capabilities for backup
13+
hosts, built on top of the backup and restore features already included in
14+
GitHub Enterprise.
15+
.
16+
These advanced features include:
17+
.
18+
Complete GitHub Enterprise backup and recovery system via two simple utilities:
19+
`ghe-backup` and `ghe-restore`.
20+
Online backups. The GitHub appliance need not be put in maintenance mode for
21+
the duration of the backup run.
22+
Incremental backup of Git repository data. Only changes since the last
23+
snapshot are transferred, leading to faster backup runs and lower network
24+
bandwidth and machine utilization.
25+
Efficient snapshot storage. Only data added since the previous snapshot
26+
consumes new space on the backup host.
27+
Multiple backup snapshots with configurable retention periods.
28+
Backup commands run under the lowest CPU/IO priority on the GitHub appliance,
29+
reducing performance impact while backups are in progress.
30+
Runs under most Linux/Unix environments.
31+
MIT licensed, open source software maintained by GitHub, Inc.
32+

debian/copyright

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../LICENSE

debian/install

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
bin/* usr/bin
2+
share/* usr/share

debian/rules

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/make -f
2+
build-indep:
3+
4+
%:
5+
dh $@

libexec/ghe-backup-config renamed to share/github-backup-utils/ghe-backup-config

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22
# Usage: . ghe-backup-config
33
# GitHub Enterprise backup shell configuration.
44
#
5-
# This file is sourced by the various utilities under bin and libexec to
5+
# This file is sourced by the various utilities under bin and share/github-backup-utils to
66
# load in backup configuration and ensure things are configured properly.
77
#
88
# All commands should start with the following:
99
#
10-
# cd $(dirname "$0")/..
11-
# . libexec/ghe-backup-config
10+
# cd $(dirname "$0")/../..
11+
# . share/github-backup-utils/ghe-backup-config
1212
#
1313

1414
# Assume the current directory is the root. This should be fine so long as all
1515
# scripts source us in according to the instructions above.
1616
GHE_BACKUP_ROOT="$(pwd)"
1717

18-
# Add the bin and libexec dirs to PATH
19-
PATH="$GHE_BACKUP_ROOT/bin:$GHE_BACKUP_ROOT/libexec:$PATH"
18+
# Add the bin and share/github-backup-utils dirs to PATH
19+
PATH="$GHE_BACKUP_ROOT/bin:$GHE_BACKUP_ROOT/share/github-backup-utils:$PATH"
2020

2121
# The backup config file. This may be set in the environment.
2222
: ${GHE_BACKUP_CONFIG:="$GHE_BACKUP_ROOT/backup.config"}
@@ -108,7 +108,7 @@ GHE_SNAPSHOT_DIR="$GHE_DATA_DIR"/"$GHE_SNAPSHOT_TIMESTAMP"
108108
: ${GHE_IONICE:="ionice -c 3"}
109109

110110
# The number of seconds to wait for in progress git-gc processes to complete
111-
# before starting the sync of git data. See libexec/ghe-backup-repositories-rsync
111+
# before starting the sync of git data. See share/github-backup-utils/ghe-backup-repositories-rsync
112112
# for more information. Default: 10 minutes.
113113
: ${GHE_GIT_COOLDOWN_PERIOD:=600}
114114

@@ -159,7 +159,7 @@ fi
159159

160160
# Run ghe-host-check and establish the version of the remote GitHub instance in
161161
# the exported GHE_REMOTE_VERSION variable. If the remote version has already
162-
# been established then don't perform the host check again. Utilities in libexec
162+
# been established then don't perform the host check again. Utilities in share/github-backup-utils
163163
# that need the remote version should use this function instead of calling
164164
# ghe-host-check directly to reduce ssh roundtrips. The top-level ghe-backup and
165165
# ghe-restore commands establish the version for all subcommands.

0 commit comments

Comments
 (0)