-
Committer:
George O. Lorch III
-
Date:
2013-07-25 22:02:50 UTC
-
Revision ID:
george.lorch@percona.com-20130725220250-b4l6w8ztcows663v
Added --decompress and --decrypt options both with functioning --parallel to innobackupex based on lp1160788. These options options will decrypt and/or decompress a backup made with the --compress and/or --encrypt options.
When decrypting, the encryption algorithm and key used when the backup was taken MUST be provided via the --decrypt=ALGORITHM and --encrypt-key=LITERAL-KEY or --encrypt-key-file=KEY-FILE.
For decompression to work, the qpress binary must be present within the path.
--decrypt and --decompress may be used together at the same time to completely normalize a previously compressed and encrypted backup but in some rare instances there may be io buffer overflow issues which would require calling innobackupex twice instead of a combined single call (once for decryption and once for decompression).
The --parallel option will allow multiple files to be decrypted and/or decompressed simultaneously.
Use of these options will remove the original compressed/encrypted files and leave the results in the same location.
test suite cases have been modified to make use of these new options where appropriate:
test/t/ib_compress_basic.sh --decompress
test/t/ib_stream_compress.sh --decompress
test/t/ib_stream_compress_encrypt.sh --decompress
test/t/xb_compress.sh --decompress
test/t/xb_compress_encrypt.sh --decrypt --decompress in two individual invocations of innobackupex
test/t/xb_encrypt.sh --decrypt
test/t/xb_parallel_compress.sh --decompress --parallel
test/t/xb_parallel_compress_encrypt.sh --decrypt --decompress --parallel in a single invocation of innobackupex
test/t/xb_parallel_encrypt.sh --decrypt --parallel