I can regularly use backup-mysql.sh do backups.but when i try to extra the backups with the follow error.
+ for file in '"${@}"'
++ basename full-01-19-2018_00-06-09
+ base_filename=full-01-19-2018_00-06-09
+ restore_dir=./restore/full-01-19-2018_00-06-09
+ printf '\n\nExtracting file %s\n\n' full-01-19-2018_00-06-09.xbstream
Extracting file full-01-19-2018_00-06-09.xbstream
+ mkdir --verbose -p ./restore/full-01-19-2018_00-06-09
mkdir: created directory './restore'
mkdir: created directory './restore/full-01-19-2018_00-06-09'
+ xbstream -x -C ./restore/full-01-19-2018_00-06-09
+ xtrabackup_args=("--parallel=${processors}" "--decrypt=AES256" "--encrypt-key-file=${encryption_key_file}" "--decompress" "--R")
+ xtrabackup --parallel=1 --decrypt=AES256 --encrypt-key-file=/home/disk/backup/mysql/encryption_key --decompress --R --target-dir=./restore/full-01-19-2018_00-06-09
xtrabackup version 2.4.9 based on MySQL server 5.7.13 Linux (x86_64) (revision id: a467167cdd4)
180122 21:58:57 [01] decrypting and decompressing ./ib_buffer_pool.qp.xbcrypt
encryption: both encryption key and key file specified.
encryption: unable to set libgcrypt cipher key - User defined source 1 : Invalid key length
^M^M ^M^Mqpress: Unexpected end of source file -- try the -R flag to recover
Error: decrypt and decompress thread 0 failed.