if [ "`find $LOCK -maxdepth 1 -amin -$LOCK_TIMEOUT`" = "" ]; then
# Note: this requires the procps ps; for other ps', adjust as necessary
if ps ax | grep '[r]'sync | grep -q $RSYNC_HOST; then
- echo "stale lock found, but a rsync is still running, aiee!" > /dev/stderr
+ echo "stale lock found, but a rsync is still running, aiee!" >&2
exit 1
else
echo "stale lock found (not accessed in the last $LOCK_TIMEOUT minutes), forcing update!"
# Now sync the remaining stuff
nice rsync -rlHtv --delete \
- --include='*businesscard*.iso' --include='*netinst*.iso' \
- --exclude='*.iso' --timeout=3600 --address=$ADDRESS $TMP_EXCLUDE \
+ --include='*-businesscard.iso' \
+ --include='*-netinst.iso' \
+ --include='*-CD-1.iso' \
+ --include='*-amd64-DVD-1.iso' \
+ --include='*-i386-DVD-1.iso' \
+ --exclude='*.iso' --timeout=3600 -4 --address=$ADDRESS $TMP_EXCLUDE \
--exclude "Archive-Update-in-Progress-${HOSTNAME}" \
$RSYNC_HOST::$RSYNC_DIR $TO >> $LOGFILE 2>&1
if [[ "$?" != "0" ]]; then