delete_docker_registry_image.py
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220 ...
Xtra_QSDB_His_Load.sh
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120#!/bin/bash#set -xtgtlist="192.168.66.3:JSPT"Logdate=`date "+%Y-%m-%d"`Lastday=`date -d "- 1 day" "+%Y-%m-%d"`bakup_dir=/data/dbbackup/jspt/#判断当日属于周几Dayofweek=`date "+%w"`if [ $Dayofweek -eq 0 ];the ...
Xtrabackup.sh
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081#!/bin/bash#auther lilin#set -xBakupdir= #存放路径Sysname= #系统名#判断当日属于周几Dayofweek=`date "+%w"`Lastday=`date -d "- 1 day" "+%Y-%m-%d"`Logdate=`date "+%Y-%m-%d"`Logtype=logUser=rootPswd= ##密码#mysql配置存放路径Mycnfpath=/etc/my.cnf#上一日全量包名Baseidir=`ls ${Bakupdir} |grep ${Lastday} |grep -v ${Lo ...
auto_install_freeswitch.sh
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556#!/bin/bash#for install freeswitchpackage_dir='/tmp/data/'install_dir='/usr/local/'logfile=${package_dir}install.logmkdir -p ${package_dir}> ${logfile}#date +%F\ %H:%M:%S >> ${logfile}#echo 'start conf firewalld and selinux' >> ${logfile}##setenforce 0#systemctl stop firewalld#systemctl disable firewa ...
db_backup.sh
1234567891011121314151617181920212223242526272829#!/bin/bash##########for bak up mysql databases#by zhangying@aegis-data.cn#version 1#date 2019-12-24##########parameterBase_dir="/data/mysql_bak/"Note_file=${Base_dir}notefileDate=`date +%Y%m%d`Bak_dir="${Base_dir}${Date}/"Bak_suffix='_bak_v1.gz'Bak_log=/tmp/${Date}_dbbak.log#beforemkdir -p ${Bak_dir}#bakcat ${Note_file} | while read linedo Db_user=`echo $ ...