File tree Expand file tree Collapse file tree 7 files changed +2
-140
lines changed
share/github-backup-utils Expand file tree Collapse file tree 7 files changed +2
-140
lines changed Original file line number Diff line number Diff line change @@ -203,10 +203,6 @@ commands+=("
203
203
echo \" Backing up audit log ...\"
204
204
ghe-backup-es-audit-log || printf %s \" audit-log \" >> \" $failures_file \" " )
205
205
206
- commands+=("
207
- echo \" Backing up hookshot logs ...\"
208
- ghe-backup-es-hookshot || printf %s \" hookshot \" >> \" $failures_file \" " )
209
-
210
206
commands+=("
211
207
echo \" Backing up Git repositories ...\"
212
208
ghe-backup-repositories || printf %s \" repositories \" >> \" $failures_file \" " )
Original file line number Diff line number Diff line change @@ -380,7 +380,7 @@ if test -f $GHE_RESTORE_SNAPSHOT_PATH/es-scan-complete; then
380
380
ghe-ssh " $GHE_HOSTNAME " -- " sudo touch $GHE_REMOTE_DATA_USER_DIR /common/es-scan-complete"
381
381
fi
382
382
383
- # Restore exported audit and hookshot logs to 2.12.9 and newer single nodes and
383
+ # Restore exported audit logs to 2.12.9 and newer single nodes and
384
384
# all releases of cluster
385
385
if $CLUSTER || [ " $( version $GHE_REMOTE_VERSION ) " -ge " $( version 2.12.9) " ]; then
386
386
if [[ " $GHE_RESTORE_SKIP_AUDIT_LOGS " = " yes" ]]; then
@@ -391,9 +391,6 @@ if $CLUSTER || [ "$(version $GHE_REMOTE_VERSION)" -ge "$(version 2.12.9)" ]; the
391
391
ghe-restore-es-audit-log \" $GHE_HOSTNAME \" 1>&3" )
392
392
fi
393
393
394
- commands+=("
395
- echo \" Restoring hookshot logs ...\"
396
- ghe-restore-es-hookshot \" $GHE_HOSTNAME \" 1>&3" )
397
394
fi
398
395
399
396
if [ " $GHE_PARALLEL_ENABLED " = " yes" ]; then
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3
3
# Fake curl command stub for tests.
4
4
set -e
5
5
6
- # Return empty list of indexes for ghe-backup-es-audit-log and ghe-backup-es-hookshot
6
+ # Return empty list of indexes for ghe-backup-es-audit-log
7
7
if echo " $@ " | grep -q ' _cat/indices/' ; then
8
8
exit 0
9
9
# Exit with non-zero code to mimic a non-existant index
Original file line number Diff line number Diff line change @@ -132,19 +132,6 @@ begin_test "ghe-backup without password pepper"
132
132
)
133
133
end_test
134
134
135
- begin_test " ghe-backup empty hookshot directory"
136
- (
137
- set -e
138
-
139
- rm -rf $GHE_REMOTE_DATA_USER_DIR /hookshot/repository-*
140
- rm -rf $GHE_DATA_DIR /current/hookshot/repository-*
141
- ghe-backup
142
-
143
- # Check that the "--link-dest arg does not exist" message hasn't occurred.
144
- [ ! " $( grep " [l]ink-dest arg does not exist" $TRASHDIR /out) " ]
145
- )
146
- end_test
147
-
148
135
begin_test " ghe-backup empty git-hooks directory"
149
136
(
150
137
set -e
Original file line number Diff line number Diff line change @@ -261,11 +261,6 @@ setup_test_data () {
261
261
echo " fake audit log this yr this mth" | gzip > audit_log-1-$this_yr -$this_mth -1.gz
262
262
echo " 1" > audit_log-1-$this_yr -$this_mth -1.size
263
263
264
- # Create hookshot logs
265
- mkdir -p " $loc /hookshot/"
266
- cd " $loc /hookshot/"
267
- echo " fake hookshot log" | gzip > hookshot-logs-2018-03-05.gz
268
-
269
264
# Create some test repositories in the remote repositories dir
270
265
mkdir -p " $loc /repositories/info"
271
266
mkdir -p " $TRASHDIR /hooks"
@@ -497,7 +492,6 @@ verify_all_restored_data() {
497
492
else
498
493
grep -q " fake audit log last yr last mth" " $TRASHDIR /restore-out"
499
494
grep -q " fake audit log this yr this mth" " $TRASHDIR /restore-out"
500
- grep -q " fake hookshot log" " $TRASHDIR /restore-out"
501
495
fi
502
496
503
497
# verify settings import was *not* run due to instance already being
You can’t perform that action at this time.
0 commit comments