Innobackupex是Xtrabackup的一部分,其实质也是调用xtrabackup。主要的不同是Xtrabackup除了支持innodb引擎外还支持xtradb引擎。
innobackupex是xtrabackup的一部分,其实质也是调用xtrabackup。主要的不同是xtrabackup除了支持innodb引擎外还支持xtradb引擎。本文主要封装了innobackupex到shell脚本进行定期备份,供大家参考。
1、脚本描述
a、支持增量备份以及全备
b、需要传递到备份脚本(如备份路径,连接相关参数等)
c、基于周日,周三的全量备份,其他增量备份
d、可根据需要调整脚本,,比如压缩备份的文件夹以及rsync等
2、脚本内容
################################################################################
# File : innobk.sh #
# Author : Leshami #
# Blog : #
# Date : 20141113 #
# Description : #
# The script will call innobackupex to #
# take a full or increment backup for mysql db. #
# Currently it will take follow principal to backup: #
# Sun,Wend take full backup. #
# Mon,Tue,Thur,Fri,Sat take incremental backup. #
# #
# Usage Example: #
# innobk.sh --help|-? #
# innobk.sh --backup-dir=/dbbak --defaults-file=/inst3606/my3606.cnf \ #
# --host=127.0.0.1 --port=3606 --user=xxx --password=xxx #
# #
################################################################################
# Change History: #
# -------------------------------------------------- #
# Init Development Leshami 2014-11-13 #
################################################################################
前身是vitcie(维C商城),各种特性介绍: 1. 稳定、安全、高效的系统平台 EZIBI!基于PHP+MYSQL技术编写,PHP自1995发布第一个版本,经过近10年的发展,已经成为目前最流行的网络编程语言之一,其强大的数据库支持使得开发人员很轻易的就可以完成C/S架构电子商务平台的构建;MYSQL则是成熟的数据库系统。 2. 安装向导 EZIBI!提供支持多语言版的安装脚本,只需按照提
0
#!/bin/bash
#set -x
# Get the key value of input arguments format like '--args=value'.
function get_key_value()
{
echo "$1" | sed 's/^--[a-zA-Z_-]*=//'
}
# Usage will be helpful when you need to input the valid arguments.
function usage()
{
cat Usage: $0 [configure-options]
-?, --help Show this help message.
--backup-dir= Set backup directory
--defaults-file=[] Set mysql configuration file directory
--host= Set mysql host
--port= Set mysql port
--user= Set mysql user name
--password= Set mysql user password
EOF
}
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号