Skip to content

Commit 1bb2d0e

Browse files
committed
Log if repositories are restored to multiple nodes
1 parent f14f8dd commit 1bb2d0e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ bm_end "$(basename $0) - Building network list"
108108
# each Spokes node including only those repository networks for which there was a route to the
109109
# respective Spokes node.
110110
if $CLUSTER; then
111+
log_info "* Restoring repository networks to cluster nodes according to Spokes routes" 1>&3
112+
111113
# The server returns a list of routes:
112114
#
113115
# a/nw/a8/3f/02/100000855 dgit-node1 dgit-node2 dgit-node3
@@ -150,6 +152,8 @@ if $CLUSTER; then
150152
# the Spokes route list captured during the backup. As we already have the list of all repository
151153
# network paths, we can simply use that as the rsync file list in noncluster environments.
152154
else
155+
log_info "* Restoring all repository networks to target host unconditionally" 1>&3
156+
153157
cp "$tmp_list" "$tempdir/git-server-primary.rsync"
154158
fi
155159

0 commit comments

Comments
 (0)