wget -4 \ --accept rpm,bz2,gz,xml,asc \ --recursive \ --no-parent \ --no-host-directories \ --cut-dirs=4 \ http://mirror.centos.org/centos/7/BaseOS/x86_64/os/ rsync://archive.kernel.org::centos-vault/ #!/bin/bash repos_base_dir="/tank/mirror/centos/7/" # Start sync if base repo directory exist if [[ -d "$repos_base_dir" ]] ; then # Start Sync rsync -avSHP --delete rsync://archive.kernel.org/centos/7/ "$repos_base_dir" # Download CentOS 7 repository key wget -P $repos_base_dir wget https://www.centos.org/keys/RPM-GPG-KEY-CentOS-Official fi # FRR mirror If there's a new version of FRR, update /etc/apt/mirror.list to include the new version. The mirror is managed by apt-mirror which has it's configuration in /etc/apt/ Updates are scheduled by /etc/cron.d/apt-mirror