#!/bin/bash PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin export PATH LANG=en_US.UTF-8 is64bit=`getconf LONG_BIT` if [ -f "/usr/bin/apt-get" ];then …
公司新项目上线,今天建立全网备份,现在这记录的是Mysql部分 备份方式:全备+Binlog 备份地点:本地+异地 备份时间:每日0点,切割Binlog日志 1,环境介绍: [root@jm1j-node1 scripts]# cat /etc/redhat-release CentOS release 6.8 (Final) [root@jm1j…
一、系统优化脚本 #!/bin/bash #author junxi by #this script is only for CentOS 7.x #check the OS platform=`uname -i` if [ $platform != "x86_64" ];then echo "this script is only for 64b…