$eMailFileecho"-----------------------">>$eMailFile#时间格式为15-01-2701:06:17echo$(date+"%y-%m-%d%H:%M:%S")>>$eMailFileecho"-------------------------">>$eMailFile#定义删除bin日志的时间范围,格式为20150124010540TIME=$(date"-d3-IMDN开发者社群-imdn.cn"> $eMailFileecho"-----------------------">>$eMailFile#时间格式为15-01-2701:06:17echo$(date+"%y-%m-%d%H:%M:%S")>>$eMailFileecho"-------------------------">>$eMailFile#定义删除bin日志的时间范围,格式为20150124010540TIME=$(date"-d3 - IMDN开发者社群-imdn.cn">
登录
首页 » mysql » mysql完美增量备份脚本

mysql完美增量备份脚本

于 2023-08-23 发布 文件大小:1.68 kB
0 251
下载积分: 2 下载次数: 1

代码说明:

增量备份脚本:#!/bin/bash # Name:zbk增量备份 # mysql zbk scripts # By zxsdw.com # Last modify:2015-01-21 #定义数据库用户名及密码 user=root userPWD=密码 #定义数据库 database=数据库 #生成一个新的mysql-bin.00000X文件,如果err日志被清除,则自动新建一个。 /usr/local/mysql/bin/mysqladmin -u$user -p$userPWD flush-logs #定义增量备份位置 daily_databakDir=/backup/mysql/daily_backup #定义MYSQL数据日志目录 mysqlDataDir=/usr/local/mysql/var #定义增量日志及目录 eMailFile=$daily_databakDir/email.txt #eMail=admin@zxsdw.com #定义变量DATE格式为20150127 DATE=`date +%Y%m%d` #定义一个总的logFile日志 logFile=$daily_databakDir/mysql$DATE.log #美化日志模板 echo " " > $eMailFile echo "-----------------------" >> $eMailFile #时间格式为15-01-27 01:06:17 echo $(date +"%y-%m-%d %H:%M:%S") >> $eMailFile echo "-------------------------" >> $eMailFile #定义删除bin日志的时间范围,格式为20150124010540 TIME=$(date "-d 3

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • mysqlbug script automatically determines many of the following information to he...
    mysqlbug 脚本通过自动确定下列很多信息来帮助你生成一份报告,但是如果一些重要的东西不见了,请在你的消息中包含它!请仔细阅读本节并且保证这里描述的所有信息包含在你的报告中。 要记住,有可能回复一条包含太多的信息消息,但不回复包含极少信息的消息,因为人们认为他们知道一个问题的原因并且假设某些细节无所谓,所以他们常常忽略事实。一个好的原则是:如果你怀疑所说的事情,继续说!在你的报告中写上几行,比因为第一次没有包含足够的信息而被迫追问和等待答案要快上千倍,而且少些麻烦。-mysqlbug script automatically determines many of the following information to help you generate a report, but if some important things are missing, please your information it contains! Please read this section and assure described here contain all the information in your report. We have to remember that there may be a response contains too much information and news, but does not contain very little information back to the news because people think they know one of the reasons for some of the details and assume that does not matter, so they often ignore the facts. A good principle is : If you suspect the things to say! In your report, write a few lines, because the first did not contain sufficient information to answer questions and to wait until 1000 t
    2023-06-18 06:30:04下载
    积分:1
  • java socket通信之java服务器
    本代码公开了java程序的服务器并通过客户端传送过来的指令对masql数据库进行操作
    2022-03-21 00:56:29下载
    积分:1
  • 网上商城javaweb前台后台源码(无框架)
    网上商城:会员管理,角色管理,购物车,管理员管理、产品管理模块
    2023-03-08 17:45:07下载
    积分:1
  • 文档管理系统
    文档管理系统(document management system,简称DMS)或者数字资产管理系统(digital asset management system,简称DAM),主要是用来管理我们常用的一些文档、图纸、视频和音频等信息内容
    2022-11-07 01:45:03下载
    积分:1
  • 帝国cms段子趣图源码带后台完整版
    帝国cms段子趣图源码带后台完整版,正常安装后,恢复数据,刷新,登录账户admin  密码 admin  验证:默认admin 自己安装时候填写的
    2022-07-23 10:11:11下载
    积分:1
  • The use of PHP and MySql to complete a simple library information management sys...
    使用PHP和MySql完成的简单图书馆信息管理系统,具有一定的实用性。采用MVC结构,由于模型和视图的结构较简单,所以放在同一文件中,但是文件内有清晰的分割。密码采用MD5加密,初次使用可自行更改。-The use of PHP and MySql to complete a simple library information management system, has a certain practicality. The use of MVC structure, as a result of model and view the structure of relatively simple, so on the same document, but document a clear partition. Password using MD5 encryption, can make changes to the initial use.
    2022-01-25 19:37:28下载
    积分:1
  • jsp+servlet+mysql+tomcat的网上书店
    jsp+servlet+mysql+tomcat的网上书店,不含数据库
    2022-08-10 07:41:41下载
    积分:1
  • 通过Main函数可以查看并解析https网站的安全证书信息,并与DBConn一道将您所感兴趣的证书存入到MySQL数据库当中...
    通过Main函数可以查看并解析https网站的安全证书信息,并与DBConn一道将您所感兴趣的证书存入到MySQL数据库当中-Through the Main function can view and analysis of the safety certificate https web information, dbconn, together with your certificate of deposit interest to the MySQL database
    2022-12-02 12:40:03下载
    积分:1
  • JavaMysql连接
    eclipse IDE for java EEtomcatmysql 57jdbc
    2022-05-09 05:30:45下载
    积分:1
  • 学生成绩
    学生成绩管理系统。有班级、学生、年级管理等等功能,用mysql数据库。用到的表不是很多。但是功能很全。gui写的比较不错
    2022-05-06 16:05:10下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载