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 @@ -30,14 +30,14 @@ ghe_remote_version_required "$GHE_HOSTNAME"
3030# us run this script directly.
3131: ${GHE_RESTORE_SNAPSHOT:= current}
3232
33- # Create the remote user data directory
34- if [ " $GHE_VERSION_MAJOR " -ge 2 ]; then
35- ghe-ssh " $host " -- " sudo -u git mkdir -p $GHE_REMOTE_DATA_USER_DIR /$dirname "
36- fi
37-
3833# Transfer data from the latest snapshot to the GitHub instance in a single
3934# rsync invocation.
4035if [ -d " $GHE_DATA_DIR /$GHE_RESTORE_SNAPSHOT /$dirname " ]; then
36+ # Create the remote user data directory
37+ if [ " $GHE_VERSION_MAJOR " -ge 2 ]; then
38+ ghe-ssh " $GHE_HOSTNAME " -- " sudo -u git mkdir -p $GHE_REMOTE_DATA_USER_DIR /$dirname "
39+ fi
40+
4141 ghe-rsync -avz --delete \
4242 -e " ghe-ssh -p $( ssh_port_part " $GHE_HOSTNAME " ) " \
4343 --rsync-path=" sudo -u git rsync" \
You can’t perform that action at this time.
0 commit comments