Skip to content

Commit 17a846e

Browse files
authored
Merge pull request #516 from github/taz/fix-exclude-file-removal
Remove temporary exclude file from the backup host not the target GHES appliance
2 parents d9620bc + cb43a16 commit 17a846e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

share/github-backup-utils/ghe-backup-es-rsync

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ cleanup () {
6767
ghe_verbose "* Enabling ES index flushing ..."
6868
echo '{"index":{"translog.disable_flush":false}}' |
6969
ghe-ssh "$host" -- curl -s -XPUT "localhost:9200/_settings" -d @- >/dev/null
70-
ghe-ssh "$host" rm -rf "$exclude_file"
70+
rm -rf "$exclude_file"
7171
}
7272
trap 'cleanup' EXIT
7373
trap 'exit $?' INT # ^C always terminate

0 commit comments

Comments
 (0)