File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
share/github-backup-utils Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,12 @@ if [ "$GHE_BACKUP_STRATEGY" = "cluster" ]; then
78
78
ghe-ssh-config " $GHE_HOSTNAME " " $hostnames " > " $ssh_config_file "
79
79
fi
80
80
81
+ # hostnames for HA
82
+ if ghe-ssh " $GHE_HOSTNAME " -- \
83
+ " [ -f '$GHE_REMOTE_ROOT_DIR /etc/github/cluster' ] && [ -f '$GHE_REMOTE_ROOT_DIR /etc/github/repl-state' ]" ; then
84
+ hostnames=$( ghe-ssh " $GHE_HOSTNAME " ghe-cluster-nodes -i | cut -f 2)
85
+ fi
86
+
81
87
# Make sure root backup dir exists if this is the first run
82
88
mkdir -p " $backup_dir "
83
89
Original file line number Diff line number Diff line change @@ -51,6 +51,12 @@ if [ "$GHE_BACKUP_STRATEGY" = "cluster" ]; then
51
51
ghe-ssh-config " $GHE_HOSTNAME " " $hostnames " > " $ssh_config_file "
52
52
fi
53
53
54
+ # hostnames for HA
55
+ if ghe-ssh " $GHE_HOSTNAME " -- \
56
+ " [ -f '$GHE_REMOTE_ROOT_DIR /etc/github/cluster' ] && [ -f '$GHE_REMOTE_ROOT_DIR /etc/github/repl-state' ]" ; then
57
+ hostnames=$( ghe-ssh " $GHE_HOSTNAME " ghe-cluster-nodes -i | cut -f 2)
58
+ fi
59
+
54
60
# Make sure root backup dir exists if this is the first run
55
61
mkdir -p " $backup_dir "
56
62
You can’t perform that action at this time.
0 commit comments