new="$mirror/$STAMP"
mkdir $new
-if lockfile -! -r2 -300 "$mirror/mirror.lock"
+if lockfile -! -l 3600 -r2 -300 "$mirror/mirror.lock"
then
echo "couldn't aquire mirror.lock in due time"
exit 1;
--delete-excluded --delete-after \
"$topdir/$d/" "$new/$d/"
done
+LC_ALL=POSIX LANG=POSIX date -u > "$new/www/Pics/.trace"
ln -sfT $new $mirror/current
find $mirror -mindepth 1 -maxdepth 1 -not -name "${STAMP}" -type d -print0 \