镜像站定时任务

#mirror web
*/5   *  *  *  *  cd /mirror && git pull
#mysql mirror
0  */3  *  *  *  rsync -av --delete rsync://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql-connectors-community-el7/  /mirror/mysql/yum/mysql-connectors-community-el7/  > /dev/null 2>&1;
0  */3  *  *  *  rsync -av --delete rsync://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql-tools-community-el7/  /mirror/mysql/yum/mysql-tools-community-el7/  > /dev/null 2>&1;
0  */3  *  *  *  rsync -av --delete rsync://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql57-community-el7/  /mirror/mysql/yum/mysql57-community-el7/  > /dev/null 2>&1;
0  */3  *  *  *  rsync -av --delete rsync://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql80-community-el7/  /mirror/mysql/yum/mysql80-community-el7/  > /dev/null 2>&1;
#centos mirror
0  */4  *  *  *  rsync -av --delete rsync://mirrors.tuna.tsinghua.edu.cn/centos/  /mirror/centos/  > /dev/null 2>&1;
#epel mirror
0  */4  *  *  *  rsync -av --delete rsync://mirrors.tuna.tsinghua.edu.cn/epel/  /mirror/epel/  > /dev/null 2>&1;
#ubuntu-mirror
#0  */4  *  *  *  cd /mirror/apt-mirror/ubuntu/var/ ; rm -rf apt-mirror.lock ; apt-mirror > /dev/null 2>&1; sh /mirror/apt-mirror/ubuntu/var/clean.sh
#zabbix-mirror
0  */6  *  *  *  rsync -av --delete rsync://mirrors.tuna.tsinghua.edu.cn/zabbix/zabbix/3.4/ /mirror/zabbix/3.4/ > /dev/null 2>&1;
0  */6  *  *  *  rsync -av --delete rsync://mirrors.tuna.tsinghua.edu.cn/zabbix/zabbix/4.0/ /mirror/zabbix/4.0/ > /dev/null 2>&1;
原文地址:https://www.cnblogs.com/lizhaojun-ops/p/10789779.html