XtraBackup使用
CentOS7同步网络时间
yum -y install ntp ntpdate |
离线安装xtrabackup
找一台可以访问外网的CentOS7,然后执行命令下载离线rmp依赖包mkdir /home/localrepo
cd /home/localrepo
yum install yum-utils createrepo
yum install https://repo.percona.com/yum/percona-release-latest.noarch.rpm
# 下载所有依赖包到目录/home/xtrabackup-rpm
# 如果本机上已经安装过部分依赖,则无法下载下来,只能手动去一个个下载了,所以最好找一个干净的环境做这些事情
yumdownloader --resolve percona-xtrabackup-24 rsync --destdir=/home/xtrabackup-rpm
wget https://repo.percona.com/yum/release/7/RPMS/x86_64/qpress-11-1.el7.x86_64.rpm
createrepo /home/localrepo
tar -zcf /home/localrepo.tar.gz /home/local/repo