generate a repository mirror server from scratch