Skip to content

xtrabackup循环备份脚本,全量备份、增量备份。

Notifications You must be signed in to change notification settings

mykioer/xtrabackup_shell_script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

xtrabackup_shell_script.sh

xtrabackup循环备份脚本,支持全量备份和增量备份。可设置循环备份天数,全量备份自动删除旧的备份。

目录结构
/data
   |_ backup
        |_ full #全量备份文件保存目录 *.tar.gz
        |   |_ logs #全量备份日志文件 *.log
        |_ incr #增量备份文件保存目录
        |    |_ logs #增量备份日志 *.log
        |_ error.log #错误日志

使用方法:

全量备份

./xtrabackup_shell_script.sh -f

增量备份

./xtrabackup_shell_script.sh -i

About

xtrabackup循环备份脚本,全量备份、增量备份。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages