Skip to content

Commit 8840626

Browse files
authored
Merge pull request #575 from github/remove-gitbackups
Remove gitbackups changes
2 parents c3ad878 + 8f8823d commit 8840626

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

bin/ghe-backup

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -81,25 +81,6 @@ if [ "$(ls -il dest1/testfile | awk '{ print $1 }')" != "$(ls -il dest2/testfile
8181
fi
8282
rm -rf src dest1 dest2
8383

84-
# if we should use gitbackups to backup repositories
85-
should_use_gitbackups_for_repositories(){
86-
ghe-ssh "$GHE_HOSTNAME" ghe-config --true "app.github.gitbackups"
87-
}
88-
89-
# check that the appliance supports using gitbackups for repositories
90-
can_use_gitbackups_for_repositories(){
91-
ghe-ssh "$GHE_HOSTNAME" test -e /data/github/current/bin/ghe-backup-repositories
92-
}
93-
94-
# Exit early if the appliance is missing script to backup repositories using gitbackups
95-
if should_use_gitbackups_for_repositories; then
96-
if ! can_use_gitbackups_for_repositories; then
97-
echo "Error: Configuration setting 'app.github.gitbackups' is enabled but this version of GHES cannot use gitbackups to back up repositories via 'ghe-backup'."
98-
echo "Disable configuration setting 'app.github.gitbackups' and re-run 'ghe-backup' to use rsync."
99-
exit 1
100-
fi
101-
fi
102-
10384
# To prevent multiple backup runs happening at the same time, we create a
10485
# in-progress file with the timestamp and pid of the backup process,
10586
# giving us a form of locking.

0 commit comments

Comments
 (0)