File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
share/github-backup-utils Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11
11
# Show usage and bail with no arguments
12
12
[ $# -lt 2 ] && print_usage
13
13
14
- bm_start " $( basename $0 ) "
14
+ bm_start " $( basename $0 ) - $1 "
15
15
16
16
# Grab userdata directory name and host args
17
17
dirname=" $1 "
@@ -37,12 +37,12 @@ if [ -d "$GHE_DATA_DIR/$GHE_RESTORE_SNAPSHOT/$dirname" ]; then
37
37
if [ " $GHE_VERSION_MAJOR " -ge 2 ]; then
38
38
ghe-ssh " $GHE_HOSTNAME " -- " sudo -u git mkdir -p $GHE_REMOTE_DATA_USER_DIR /$dirname "
39
39
fi
40
-
40
+
41
41
ghe-rsync -avz --delete \
42
42
-e " ghe-ssh -p $( ssh_port_part " $GHE_HOSTNAME " ) " \
43
43
--rsync-path=" sudo -u git rsync" \
44
44
" $GHE_DATA_DIR /$GHE_RESTORE_SNAPSHOT /$dirname /" \
45
45
" $( ssh_host_part " $GHE_HOSTNAME " ) :$GHE_REMOTE_DATA_USER_DIR /$dirname " 1>&3
46
46
fi
47
47
48
- bm_end " $( basename $0 ) "
48
+ bm_end " $( basename $0 ) - $1 "
You can’t perform that action at this time.
0 commit comments