~percona-core/percona-xtrabackup/release-2.1.0-alpha1

« back to all changes in this revision

Viewing changes to test/t/xb_parallel_compress_encrypt.sh

MergedĀ lp:~gl-az/percona-xtrabackup/BT-23557-2.1-encrypted_stream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
############################################################################
 
2
# Test basic local parallel backup with compression and encryption
 
3
############################################################################
 
4
 
 
5
if ! which qpress > /dev/null 2>&1 ; then
 
6
  echo "Requires qpress to be installed" > $SKIPPED_REASON
 
7
  exit $SKIPPED_EXIT_CODE
 
8
fi
 
9
 
 
10
encrypt_algo="AES256"
 
11
encrypt_key="percona_xtrabackup_is_awesome___"
 
12
 
 
13
innobackupex_options="--parallel=8 --compress --compress-threads=4 --compress-chunk-size=8K --encrypt=$encrypt_algo --encrypt-key=$encrypt_key --encrypt-threads=4 --encrypt-chunk-size=8K"
 
14
 
 
15
data_decrypt_cmd="for i in *.xbcrypt; do \
 
16
xbcrypt -d -a $encrypt_algo -k $encrypt_key < \$i > \${i:0:\${#i}-8}; \
 
17
rm -f \$i; done; \
 
18
for i in ./sakila/*.xbcrypt; do \
 
19
xbcrypt -d -a $encrypt_algo -k $encrypt_key < \$i > \${i:0:\${#i}-8}; \
 
20
rm -f \$i; done;"
 
21
 
 
22
data_decompress_cmd="for i in *.qp;  do qpress -d \$i ./; done; \
 
23
for i in sakila/*.qp; do qpress -d \$i sakila/; done"
 
24
 
 
25
. inc/xb_local.sh