diff options
author | Milo Casagramde <milo.casagrande@linaro.org> | 2013-03-08 07:12:25 +0000 |
---|---|---|
committer | Milo Casagramde <milo.casagrande@linaro.org> | 2013-03-08 07:12:25 +0000 |
commit | a348297d8bedc67241c94d101c23abc4f2dbd5a7 (patch) | |
tree | 315c93c7a9a9cd9d4640a735f05982dcf8f36d73 | |
parent | 0461276aca510ee35aca756f493e5510c161db62 (diff) |
Handle file symlinks as symlinks.
-rw-r--r-- | scripts/rsync-mirror | 6 |
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 |