9.3 Percona Compressed Backup
9.3 Percona Compressed Backup
$sudo du –sh * [verify the space, you will get some idea ]
---Full backup
$ xtrabackup --user=bkp --password=bkp123 --backup --compress --target-
dir=/root/backups/compress/
If you want to speed up the compression you can use the parallel
compression, which can be enabled with xtrabackup --compress-
threads option. Following example will use four threads for compression:
Before you can prepare the backup you’ll need to uncompress all the
files. Percona XtraBackup has implemented xtrabackup --decompress option
that can be used to decompress the backup.
Note:-
Before proceeding you’ll need to make sure that qpress has been installed.
It’s availabe from Percona Software repositories
Note
When the files are uncompressed you can prepare the backup with
the xtrabackup --prepare option:
It will copy all the data-related files back to the server’s datadir, determined
by the server’s my.cnf configuration file. You should check the last line of the
output for a success message:
You should check the file permissions after copying the data back. You may
need to adjust them with something like:
https://www.percona.com/doc/percona-xtrabackup/2.3/backup_scenarios/compressed_backup.html