#!/bin/sh

#MIRROR=ftp6.us.freebsd.org
MIRROR=ftp10.us.freebsd.org

exec rsync --no-motd -a --no-p --no-g --chmod=ugo=rwX --delete-excluded --delete-before \
    --exclude='/snapshots/CI-IMAGES' \
    --exclude='/snapshots/arm' \
    --exclude='/snapshots/arm64' \
    --exclude='/snapshots/i386' \
    --exclude='/snapshots/powerpc' \
    --exclude='/snapshots/riscv' \
    --exclude='/snapshots/riscv64' \
    --exclude='/snapshots/sparc64' \
    --include='/snapshots/VM-IMAGES/*/amd64' \
    --exclude='/snapshots/VM-IMAGES/*/*' \
    --exclude='/doc/' \
    $* ${MIRROR}::FreeBSD/ /afs/.tcreech.com/mirror/FreeBSD/
