# Ubuntu archive
sudo rsync -avz --delete --ignore-errors --no-perms --no-owner --no-group \
    rsync://archive.ubuntu.com/ubuntu \
    /volume1/archive/repo/mirror/archive.ubuntu.com/ubuntu

# Ubuntu security
sudo rsync -avz --delete --ignore-errors --no-perms --no-owner --no-group \
    rsync://security.ubuntu.com/ubuntu \
    /volume1/archive/repo/mirror/security.ubuntu.com/ubuntu

# Debian archive
sudo rsync -avz --delete --ignore-errors --no-perms --no-owner --no-group \
    rsync://deb.debian.org/debian \
    /volume1/archive/repo/mirror/deb.debian.org/debian

# Debian security
sudo rsync -avz --delete --ignore-errors --no-perms --no-owner --no-group \
    rsync://security.debian.org/debian-security \
    /volume1/archive/repo/mirror/security.debian.org/debian-security
