10-openmamba-sync-back: fix exclude /old directories from sync

This commit is contained in:
Silvan Calarco 2012-03-12 15:51:25 +01:00
parent 1a33b8eef4
commit a99cf681f6

View File

@ -14,24 +14,24 @@
}
for rep in ${remote_reps[*]}; do
echo "==> Syncing back $rep remote repository"
[[ "`/usr/bin/tty`" != "not a tty" ]] && echo "==> Syncing back $rep remote repository"
for a in ${archs[*]}; do
rsync \
$RSYNC_OPT \
$dest_rsync/$rep/RPMS.$a $local_ftp/$rep \
--password-file=/etc/rsync.password --bwlimit=500 \
--exclude */old > /dev/null
--exclude old > /dev/null
done
rsync \
$RSYNC_OPT \
$dest_rsync/$rep/SRPMS.base $local_ftp/$rep \
--password-file=/etc/rsync.password --bwlimit=500 \
--exclude */old >/dev/null
--exclude old >/dev/null
rsync \
$RSYNC_OPT \
$dest_rsync/$rep/home $local_ftp/$rep \
--password-file=/etc/rsync.password --bwlimit=500 \
--exclude */old > /dev/null
--exclude old > /dev/null
# rsync \
# $RSYNC_OPT \
# $dest_rsync/$rep/autoupdate $local_ftp/$rep \
@ -43,7 +43,7 @@
[ "$ftpsync" -a "$dest_ftp" ] && {
for a in ${remote_reps[*]}; do
echo "==> Syncing back remote $a repository"
[[ "`/usr/bin/tty`" != "not a tty" ]] && echo "==> Syncing back remote $a repository"
ftpsync -q -g $local_ftp/$a/RPMS.i586 \
$dest_ftp/pub/openmamba/$a/RPMS.i586 ftpuser=$ftpuser ftppasswd=$ftppass
ftpsync -q -g $local_ftp/$a/SRPMS.base \