#!/usr/bin/env bash
. /mirror/lib/sync.sh
#opts=(--max-delete=1500000 --timeout=0 --dry-run)
ffts="fullfiletimelist-fedora"
checkresult=$(rsync --no-motd --dry-run --out-format="%n" "$source/${ffts}" "./data/${ffts}")
if [[ -z "$checkresult" ]]; then
    exit 0
fi
opts=(--max-delete=1500000 --timeout=0)
get $source --perms "${opts[@]}" --exclude={images,iso}
get $source --perms "${opts[@]}"
# ./report_mirror -c report_mirror.conf
