rsync to mirror repository gives ERROR: Unknown module 'distribution'

You told it to exclude everything (–exclude=*) and it excludes everything. This is explained in full in rsync manual.