# Does innobackupex support both encryption, compression and stream in parallel

**URL:** <https://forums.percona.com/t/does-innobackupex-support-both-encryption-compression-and-stream-in-parallel/3543>\
**Category:** Percona XtraBackup\
**Created:** [June 11, 2014, 10:24pm UTC](https://forums.percona.com/t/does-innobackupex-support-both-encryption-compression-and-stream-in-parallel/3543 "2014-06-11T22:24:33Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Kooky](https://avatars.discourse-cdn.com/v4/letter/k/77aa72/32.png) [@Kooky](https://forums.percona.com/u/Kooky)\
**Post date:** [February 21, 2018, 6:58am UTC](https://forums.percona.com/t/does-innobackupex-support-both-encryption-compression-and-stream-in-parallel/3543/5 "2018-02-21T06:58:03Z")

</div>

Hi,  
Thank you so much for this topic.  
I have a question about exporting the encryption key file.  
The error that I have:  
encryption: unable to set libgcrypt cipher key - User defined source 1 : Invalid key length  
When I checked, I understoot that it’s a problem with the encryption\_key file that I exported.  
For example, in my script when I replace:  
“–encrypt-key-file=${encryptionkeyfile}”  
by: “–encrypt-key-=78JKDSKJ78DSKJB37823BUIKDSKJ32HJ”  
it works  
I would like to know how can I export the key file  
I saw somewhere that text file in some cases can contain the CRLF.  
Even when I used:  
echo -n “A1EDC73815467C083B0869508406637E” \> /data/backups/encryption\_key  
It’s not work.  
Some help please!!

---

_[View the full topic](https://forums.percona.com/t/does-innobackupex-support-both-encryption-compression-and-stream-in-parallel/3543)._
