aboutsummaryrefslogtreecommitdiff
path: root/scripts/rsync-mirror
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/rsync-mirror')
-rw-r--r--scripts/rsync-mirror7
1 files changed, 0 insertions, 7 deletions
diff --git a/scripts/rsync-mirror b/scripts/rsync-mirror
index 158f4c1..56b5ae8 100644
--- a/scripts/rsync-mirror
+++ b/scripts/rsync-mirror
@@ -37,11 +37,9 @@ LANDING_TEAMS_PATH=$PRIVATE_PATH/landing-teams
function set_own_perm {
# At the moment defaults everything to the rhodecode user and group.
# Might change in the future.
- echo "Setting directories ownership..."
chown -R $RHODECODE_USER:$RHODECODE_USER $LOCAL_REPO_PATH
# chmod-correctly directories and files.
- echo "Setting files and directories permissions..."
find $LOCAL_REPO_PATH -type d -exec chmod 775 {} \;
find $LOCAL_REPO_PATH -type f -exec chmod 664 {} \;
}
@@ -54,22 +52,18 @@ trap set_own_perm EXIT HUP QUIT TERM KILL
# of RhodeCode git repositories one.
if [ ! -d $LINARO_PRIVATE_PATH ]
then
- echo "Creating linaro-private directory..."
mkdir -p $LINARO_PRIVATE_PATH
fi
if [ ! -d $LANDING_TEAMS_PATH ]
then
- echo "Creating landing-teams directory..."
mkdir -p $LANDING_TEAMS_PATH
fi
# Sync private repositories, following symlinks and deleting locally.
-echo "Rsyncing linaro-private repositories..."
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 -l --copy-unsafe-links -z -t \
--compress-level=8 --delete \
$SSH_USER@$GIT_SERVER:$LANDING_TEAMS_REMOTE $LANDING_TEAMS_PATH
@@ -77,7 +71,6 @@ rsync -e "ssh -i $SSH_KEY -l $SSH_USER" -r -l --copy-unsafe-links -z -t \
# Sync normal repositories, following symlinks and deleting locally.
# Filter on the 'private' directory, otherwise it will be deleted since
# we copy everything in the top directories of RhodeCode git.
-echo "Rsyncing public repositories..."
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