a-repository is the repository we'd like to mirror and b-repository is the mirroring repository. b-repository will mirror the a-repository and take any future updates going into a-repository.
Follow the steps in the article Duplicating a repository but change the names as follows: old-repository corresponds to a-repository and new-repository corresponds to b-repository.