diff --git a/etc/cron.daily/10-openmamba-mirror-daily b/etc/cron.daily/10-openmamba-mirror-daily index feaa724..6e66814 100755 --- a/etc/cron.daily/10-openmamba-mirror-daily +++ b/etc/cron.daily/10-openmamba-mirror-daily @@ -1,25 +1,28 @@ #!/bin/bash # # openmamba daily sync script -# (c) 2006-2008 by Silvan Calarco +# (c) 2006-2012 by Silvan Calarco # . /etc/sysconfig/openmamba-central RSYNC_OPT="-av --no-o --delete --delete-after" -echo "Creating and syncing pkglist" -for a in ${local_reps[*]}; do - distromatic -q -t $a --genpkglist > $local_ftp/$a/pkglist - [ "$ftpsync" ] && { - curl -s -T $local_ftp/$a/pkglist -u$ftpuser:$ftppass --url $dest_ftp/pub/openmamba/$a/ - } -done - if [ "$ftpsync" ]; then echo "Syncing openmamba devel utils dir" ftpsync -q -p $local_ftp/devel/utils \ $dest_ftp/pub/openmamba/devel/utils ftpuser=$ftpuser ftppasswd=$ftppass fi +echo "Syncing openmamba allmedias files" +if [ "$ftpsync" ]; then + ftpsync -q -p $local_ftp/allmedias* \ + $dest_ftp/pub/openmamba/ ftpuser=$ftpuser ftppasswd=$ftppass +else + rsync \ + $RSYNC_OPT \ + $local_ftp/allmedias* $dest_rsync \ + --password-file=/etc/rsync.password --bwlimit=400 +fi + echo "Syncing openmamba db dir" if [ "$ftpsync" ]; then ftpsync -q -p $local_ftp/db \