ubuntu 22.04 server 安装 xtrabackup 2.4 qpress LTS

时间:2024-11-07 12:36:42

ubuntu 22.04 server 安装 xtrabackup 2.4 qpress LTS

参考

https://docs.percona.com/percona-xtrabackup/innovation-release/apt-repo.html

https://www.ubuntuupdates.org/ppa/percona_server_with_xtradb?dist=jammy

centos7 xtrabackup mysql(8)压缩 增量备份(3)
https://blog.****.net/wowocpp/article/details/141162887

https://docs.percona.com/percona-xtrabackup/innovation-release/compile-xtrabackup.html

流程

Debian packages from Percona are signed with a key. Before using the repository, you should add the key to APT. To do that, run the following commands as a root user:

# gpg --keyserver  hkp://keys.gnupg.net --recv-keys 1C4CBDCDCD2EFD2A
... [some output removed] ...
gpg:               imported: 1

# gpg -a --export CD2EFD2A | apt-key add -

sudo sh -c ‘echo “deb http://repo.percona.com/apt jammy main” >> /etc/apt/sources.list.d/percona.list’

Install with an APT repository

wget https://repo.percona.com/apt/percona-release_latest.$(lsb_release -sc)_all.deb

11

Install the downloaded package with dpkg. To do that, run the following commands as root or with sudo: dpkg -i percona-release_latest.$(lsb_release -sc)_all.deb

Once you install this package the Percona repositories should be added. You can check the repository setup in the /etc/apt/sources.list.d/percona-release.list file.

22
Refresh the local cache to update the package information:

$ sudo apt update

Install the percona-xtrabackup-24 package:

$ sudo apt install percona-xtrabackup-24

qpress

wget “http://docs-aliyun.cn-hangzhou.oss.aliyun-inc.com/assets/attach/183466/cn_zh/1608011575185/qpress-11-linux-x64.tar”
tar xvf qpress-11-linux-x64.tar
chmod 775 qpress
sudo cp qpress /usr/bin

sudo systemctl stop mysqld
sudo cp -r /opt/datadir/mysql /opt/datadir/bak_mysql