File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
share/github-backup-utils Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 10
10
# shellcheck source=share/github-backup-utils/ghe-backup-config
11
11
. " $( dirname " ${BASH_SOURCE[0]} " ) /ghe-backup-config"
12
12
13
- bm_start " $( basename $0 ) "
13
+ bm_start " $( basename " $0 " ) "
14
14
15
15
# Set up remote host and root elastic backup directory based on config
16
16
host=" $GHE_HOSTNAME "
@@ -53,7 +53,7 @@ log_rsync "BEGIN elasticsearch rsync" 1>&3
53
53
ghe-rsync -avz \
54
54
-e " ghe-ssh -p $( ssh_port_part " $host " ) " \
55
55
--rsync-path=" sudo -u elasticsearch rsync" \
56
- $link_dest \
56
+ " $link_dest " \
57
57
" $( ssh_host_part " $host " ) :$GHE_REMOTE_DATA_USER_DIR /elasticsearch/" \
58
58
" $GHE_SNAPSHOT_DIR /elasticsearch" 1>&3
59
59
log_rsync " END elasticsearch rsync" 1>&3
@@ -78,14 +78,14 @@ log_rsync "BEGIN: elasticsearch followup rsync" 1>&3
78
78
ghe-rsync -avz \
79
79
-e " ghe-ssh -p $( ssh_port_part " $host " ) " \
80
80
--rsync-path=" sudo -u elasticsearch rsync" \
81
- $link_dest \
81
+ " $link_dest " \
82
82
" $( ssh_host_part " $host " ) :$GHE_REMOTE_DATA_USER_DIR /elasticsearch/" \
83
83
" $GHE_SNAPSHOT_DIR /elasticsearch" 1>&3
84
84
log_rsync " END: elasticsearch followup rsync" 1>&3
85
85
86
86
# "Backup" audit log migration sentinel file
87
87
if ghe-ssh " $host " -- " test -f $GHE_REMOTE_DATA_USER_DIR /common/es-scan-complete" ; then
88
- touch $GHE_SNAPSHOT_DIR /es-scan-complete
88
+ touch " $GHE_SNAPSHOT_DIR " /es-scan-complete
89
89
fi
90
90
91
- bm_end " $( basename $0 ) "
91
+ bm_end " $( basename " $0 " ) "
You can’t perform that action at this time.
0 commit comments