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 "
@@ -47,7 +47,7 @@ log_rsync "BEGIN elasticsearch rsync" 1>&3
47
47
ghe-rsync -avz \
48
48
-e " ghe-ssh -p $( ssh_port_part " $host " ) " \
49
49
--rsync-path=" sudo -u elasticsearch rsync" \
50
- " $link_dest " \
50
+ $link_dest \
51
51
" $( ssh_host_part " $host " ) :$GHE_REMOTE_DATA_USER_DIR /elasticsearch/" \
52
52
" $GHE_SNAPSHOT_DIR /elasticsearch" 1>&3
53
53
log_rsync " END elasticsearch rsync" 1>&3
@@ -72,14 +72,14 @@ log_rsync "BEGIN: elasticsearch followup rsync" 1>&3
72
72
ghe-rsync -avz \
73
73
-e " ghe-ssh -p $( ssh_port_part " $host " ) " \
74
74
--rsync-path=" sudo -u elasticsearch rsync" \
75
- " $link_dest " \
75
+ $link_dest \
76
76
" $( ssh_host_part " $host " ) :$GHE_REMOTE_DATA_USER_DIR /elasticsearch/" \
77
77
" $GHE_SNAPSHOT_DIR /elasticsearch" 1>&3
78
78
log_rsync " END: elasticsearch followup rsync" 1>&3
79
79
80
80
# "Backup" audit log migration sentinel file
81
81
if ghe-ssh " $host " -- " test -f $GHE_REMOTE_DATA_USER_DIR /common/es-scan-complete" ; then
82
- touch " $GHE_SNAPSHOT_DIR " /es-scan-complete
82
+ touch $GHE_SNAPSHOT_DIR /es-scan-complete
83
83
fi
84
84
85
- bm_end " $( basename " $0 " ) "
85
+ bm_end " $( basename $0 ) "
You can’t perform that action at this time.
0 commit comments