zoukankan      html  css  js  c++  java
  • 镜像站定时任务

    #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;
    
  • 相关阅读:
    oracle常规操作
    shell 的算数运算
    sed 命令小结
    swing
    索引失效
    poj--1258--Agri-Net(最小生成树)
    CodeForces--626C--Block Towers (二分)
    Codeforces--629A--Far Relative’s Birthday Cake(暴力模拟)
    Codeforces--629B--Far Relative’s Problem(模拟)
    hdoj--5104--Primes Problem(素数打表)
  • 原文地址:https://www.cnblogs.com/DevOpsTechLab/p/10789779.html
Copyright © 2011-2022 走看看