aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilo Casagramde <milo.casagrande@linaro.org>2013-03-07 01:21:52 +0000
committerMilo Casagramde <milo.casagrande@linaro.org>2013-03-07 01:21:52 +0000
commit0bc756de0d3530e2d3402f867eab2b492f212517 (patch)
tree633cb88935efb3bfed0ee501ad004b87dc61b917
parentd6a4f974515dca8b3f703992aec1fb6ecb19cf25 (diff)
Fixed SSH user name, wrong chowned directory and typo.
-rw-r--r--scripts/rsync-mirror11
1 files changed, 6 insertions, 5 deletions
diff --git a/scripts/rsync-mirror b/scripts/rsync-mirror
index c432b27..5c27c3e 100644
--- a/scripts/rsync-mirror
+++ b/scripts/rsync-mirror
@@ -1,7 +1,8 @@
#!/bin/bash
RHODECODE_USER=rhodecode
-SSH_USER=linaro-rsync
+SSH_USER=git-linaro-staging
+SSH_KEY=$HOME/.ssh/id_rsa
GIT_SERVER=git.linaro.org
LINARO_PRIVATE_REMOTE=/srv/linaro-private.git.linaro.org/
LANDING_TEAMS_REMOTE=/srv/landing-teams.git.linaro.org/
@@ -24,14 +25,14 @@ fi
# Sync private repositories, following symlinks and deleting locally.
echo "Rsyncing linaro-private repositories..."
-rsync -e "ssh -l $SSH_USER" -r -L -z --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 -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 -l $SSH_USER" -r -L -z --compress-level=8 --delete $SSH_USER@$GIT_SERVER:$LANDING_TEAMS_REMOTE $LANDING_TEAMS_PATHS
+rsync -e "ssh -i $SSH_KEY -l $SSH_USER" -r -L -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 -l $SSH_USER" -r -L -z --compress-level=8 --delete $SSH_USER@$GIT_SERVER:$PUBLIC_REPO_PATH $LOCAL_REPO_PATH
+rsync -e "ssh -i $SSH_KEY -l $SSH_USER" -r -L -z -t --compress-level=8 --delete $SSH_USER@$GIT_SERVER:$PUBLIC_REPO_PATH $LOCAL_REPO_PATH
echo "Setting directories ownership..."
-chown -R $RHODECODE_USER:$RHODECODE_USER $PRIVATE_PATH
+chown -R $RHODECODE_USER:$RHODECODE_USER $LOCAL_REPO_PATH