diff --git a/etc/cron.hourly/10-openmamba-sync-back b/etc/cron.hourly/10-openmamba-sync-back index c1eee6a..a2722ba 100755 --- a/etc/cron.hourly/10-openmamba-sync-back +++ b/etc/cron.hourly/10-openmamba-sync-back @@ -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 \