Skip to content

Commit b6ae636

Browse files
authored
Merge pull request #715 from github/djdefi-restore-specifc
Bug fix: Be more specific in restore routes globbing
2 parents 257dabf + 1f8dc05 commit b6ae636

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

share/github-backup-utils/ghe-restore-repositories

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ cat $tmp_list | ghe_debug
120120
bm_end "$(basename $0) - Transferring network list"
121121

122122
bm_start "$(basename $0) - Generating routes"
123-
echo "cat $remote_tmp_list | github-env ./bin/dgit-cluster-restore-routes > $remote_routes_list" | ghe-ssh "$GHE_HOSTNAME" -- /bin/bash
123+
echo "cat $remote_tmp_list | github-env ./bin/dgit-cluster-restore-routes | grep 'git-server-' > $remote_routes_list" | ghe-ssh "$GHE_HOSTNAME" -- /bin/bash
124124
ghe-ssh "$GHE_HOSTNAME" -- cat $remote_routes_list | ghe_debug
125125
bm_end "$(basename $0) - Generating routes"
126126

@@ -144,7 +144,7 @@ fi
144144
# One rsync invocation per server available.
145145
bm_start "$(basename $0) - Restoring repository networks"
146146
rsync_commands=()
147-
for file_list in $tempdir/*.rsync; do
147+
for file_list in $tempdir/git-server-*.rsync; do
148148
if $CLUSTER; then
149149
server=$(basename $file_list .rsync)
150150
else

0 commit comments

Comments
 (0)