Percona XtraBackup has implemented new tool, The xbcloud Binary, which can be used to upload/download full or part of xbstream archive from/to cloud.
This talk will explain and demonstrate this new feature available in Percona XtraBackup 2.3, which is currently in beta.
3. An open source, free MySQL® hot backup
software that performs non-blocking
backups for InnoDB and XtraDB databases
for Percona Server, Oracle MySQL &
MariaDB
Percona XtraBackup
3
4. Swift is a highly available, distributed
object/blob store
AKA. OpenStack Object Storage
Swift
4
5. Percona XtraBackup - 2.2
Online Backup
Multi Threaded
Compression
Encryption
Streaming Backups
Delta/Incremental Support
Partial Backup/Restore
5
6. Percona XtraBackup - 2.3
innobackupex is no longer, all built in xtrabackup!
Support for immediate backup streaming to Swift
Currently Beta
Planned to be in OpenStack Trove Liberty in the future (Tesora)
Amazon S3 support will be added in the future.
6
9. Taking Full Backup
Backup:
export date=`date '+%Y-%M-%d_%H-%M-%S'`
xtrabackup --backup | xbcloud put "Full/$date"
Show Backup:
swift list Backup
9
10. Recovering Full Backup
Get Data:
mkdir /restore
xbcloud get Full/2015-05-22_23-05-55 | xbstream -x -v -C /restore
Decompress & Decrypt:
xtrabackup --defaults-group-suffix=_decompress_decrypt --target-dir=/restore
Prepare the backup (in this example, with incremental support):
xtrabackup --prepare --apply-log-only --target-dir=/restore
Copy Back:
xtrabackup --copy-back --target-dir=/restore
chown -R mysql:mysql /var/lib/mysql
10
11. Taking Incremental Backup
More Challenging to get LSN, with encrypted backups
export incrdate=`date '+%Y-%M-%d_%H-%M-%S'`
xtrabackup --backup
--incremental-lsn=`xtrabackup_swift_encrypted_incremental_lsn
Backup Full/2015-05-22_23-05-55` |
xbcloud put "Incremental/$incrdate"
11