aboutsummaryrefslogtreecommitdiff
path: root/scripts/rsync-mirror
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/rsync-mirror')
-rw-r--r--scripts/rsync-mirror6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/rsync-mirror b/scripts/rsync-mirror
index a7446b5..edd9b8c 100644
--- a/scripts/rsync-mirror
+++ b/scripts/rsync-mirror
@@ -42,13 +42,13 @@ fi
# Sync private repositories, following symlinks and deleting locally.
echo "Rsyncing linaro-private repositories..."
-rsync -e "ssh -i $SSH_KEY -l $SSH_USER" -r --copy-unsafe-links -z -t --compress-level=8 --delete $SSH_USER@$GIT_SERVER:$LINARO_PRIVATE_REMOTE $LINARO_PRIVATE_PATH
+rsync -e "ssh -i $SSH_KEY -l $SSH_USER" -r -l --copy-unsafe-links -z -t --compress-level=8 --delete $SSH_USER@$GIT_SERVER:$LINARO_PRIVATE_REMOTE $LINARO_PRIVATE_PATH
echo "Rsyncing landing-teams private repositories..."
-rsync -e "ssh -i $SSH_KEY -l $SSH_USER" -r --copy-unsafe-links -z -t --compress-level=8 --delete $SSH_USER@$GIT_SERVER:$LANDING_TEAMS_REMOTE $LANDING_TEAMS_PATH
+rsync -e "ssh -i $SSH_KEY -l $SSH_USER" -r -l --copy-unsafe-links -z -t --compress-level=8 --delete $SSH_USER@$GIT_SERVER:$LANDING_TEAMS_REMOTE $LANDING_TEAMS_PATH
# Sync normal repositories, following symlinks and deleting locally.
echo "Rsyncing public repositories..."
-rsync -e "ssh -i $SSH_KEY -l $SSH_USER" -r --copy-unsafe-links -z -t --compress-level=8 --delete --filter=-r_/private/ $SSH_USER@$GIT_SERVER:$PUBLIC_REPO_PATH $LOCAL_REPO_PATH
+rsync -e "ssh -i $SSH_KEY -l $SSH_USER" -r -l --copy-unsafe-links -z -t --compress-level=8 --delete --filter=-r_/private/ $SSH_USER@$GIT_SERVER:$PUBLIC_REPO_PATH $LOCAL_REPO_PATH
echo "Setting directories ownership..."
chown -R $RHODECODE_USER:$RHODECODE_USER $LOCAL_REPO_PATH