#!/bin/sh -x

find . >/dev/null
export RSYNC_CONNECT_PROG="ssh mail3 nc %H 873"
for what in if-archive indexes metadata misc ; do
    rsync -rltHSv --progress --delete rsync://rsync.ifarchive.org/$what $what/
done

# echo "mirror --delete-excluded --exclude unprocessed --delete --continue . if-archive" | lftp -d ftp.ifarchive.org
