#!/bin/bash

REMOTE=rsync://mirror.yandex.ru/mirrors/astralinux
LOCAL=/home/server/files.acnas.net/Develop/Linux/astra/download

mirror() {
  echo "Mirroring $1"
  rsync --recursive --hard-links --safe-links --copy-links --times \
    --delete-after --delete-excluded \
    --info=progress2 --stats --human-readable \
    $REMOTE/$1 $LOCAL
}

mirror stable
