• upload_OSS.sh


    #!/bin/bash
    #########################################
    #Usage: upload_OSS.sh
    #Author: Danny
    #Company: BPO Solutions
    #Version: 1.0
    #########################################

    UPLOADFILE=$(date +%Y-%m-%d)
    TIMEDIR=$(date +%Y%m)
    FILENAME=$(date +%Y-%m-%d-%H-%M)

    #p3306上传数据 zhuamob2
    python2.7 /usr/bin/osscmd mkdir oss://zhuamobbak/mysqlbak/3306/zhuamob2/${TIMEDIR}
    cd /home/danny/mysql_bak/zhuamob2
    python2.7 /usr/bin/osscmd put ${UPLOADFILE}* oss://zhuamobbak/mysqlbak/3306/zhuamob2/${TIMEDIR}/${FILENAME}_zhuamob2_mysql.bz2

    #p3307上传数据 wifi
    python2.7 /usr/bin/osscmd mkdir oss://zhuamobbak/mysqlbak/3307/wifi/${TIMEDIR}
    cd /home/danny/mysql_bak/wifi
    python2.7 /usr/bin/osscmd put ${UPLOADFILE}* oss://zhuamobbak/mysqlbak/3307/wifi/${TIMEDIR}/${FILENAME}_wifi_mysql.bz2

    #p3308上传数据 log_analyse wifiinfo zmbox
    python2.7 /usr/bin/osscmd mkdir oss://zhuamobbak/mysqlbak/3308/log_analyse/${TIMEDIR}
    cd /home/danny/mysql_bak/log_analyse
    python2.7 /usr/bin/osscmd put ${UPLOADFILE}* oss://zhuamobbak/mysqlbak/3308/log_analyse/${TIMEDIR}/${FILENAME}_log_analyse_mysql.bz2

    python2.7 /usr/bin/osscmd mkdir oss://zhuamobbak/mysqlbak/3308/wifiinfo/${TIMEDIR}
    cd /home/danny/mysql_bak/wifiinfo
    python2.7 /usr/bin/osscmd put ${UPLOADFILE}* oss://zhuamobbak/mysqlbak/3308/wifiinfo/${TIMEDIR}/${FILENAME}_wifiinfo_mysql.bz2

    python2.7 /usr/bin/osscmd mkdir oss://zhuamobbak/mysqlbak/3308/zmbox/${TIMEDIR}
    cd /home/danny/mysql_bak/zmbox
    python2.7 /usr/bin/osscmd put ${UPLOADFILE}* oss://zhuamobbak/mysqlbak/3308/zmbox/${TIMEDIR}/${FILENAME}_zmbox_mysql.bz2

  • 相关阅读:
    三位数
    顺序表应用4:元素位置互换之逆置算法
    顺序表应用5:有序顺序表归并
    顺序表应用6:有序顺序表查询
    数据结构实验之图论八:欧拉回路
    串结构练习——字符串连接 Description
    图的基本存储的基本方式三
    数据结构实验之图论四:迷宫探索
    数据结构实验之图论二:图的深度遍历
    图的基本存储的基本方式二
  • 原文地址:https://www.cnblogs.com/chromebook/p/4036526.html
Copyright © 2020-2023  润新知