我通过在舵图值上设置这些来获得备份工作(它根据文档工作):
google-cloud-storage-s3:
type: s3
s3:
bucket: gcp_bucket
credentialsSecret: google-cloud-storage-s3-backup
region: us-west2
endpointUrl: https://storage.googleapis.com/
然后我尝试恢复备份:
gsutil -m cp -r \
"gs://gcp_bucket/percona-2021-05-06-00:00:11-full.md5" \
"gs://gcp_backup/percona-2021-05-06-00:00:11-full.sst_info/" \
"gs://gcp_backup/percona-2021-05-06-00:00:11-full/" \
.
| [1.1k/1.1k files][ 2.7 GiB/ 2.7 GiB] 100% Done 942.3 KiB/s ETA 00:00:00
Operation completed over 1.1k objects/2.7 GiB.
sudo apt install percona-server-server percona-xtrabackup-80
文件说:
service mysqld stop
rm -rf /var/lib/mysql/*
cat xtrabackup.stream | xbstream -x -C /var/lib/mysql # --> where is this from?
xtrabackup --prepare --target-dir=/var/lib/mysql
chown -R mysql:mysql /var/lib/mysql
service mysqld start
问题是,我在备份目录中找不到任何名为copy-backup.sh
或xtrabackup.stream
的文件,是否有其他方法可以恢复备份,以及所有用 lz4 压缩的文件?