We run daily backups of our MySQL server. Using the following script:
[ ! -d "${DEST}" ] && mkdir -p "${DEST}"
FILE=${DEST}/mysql-live.${NOW}-$(date +"%T").tar.gz.bz2
# get around error
mysqldump --single-transaction -u $MUSER -h $MHOST -p$MPASS DB | bzip2 -k -v > $FILE
Now, when I try to extract with tar xvjf I get an error. It will unarchive with bunzip2 to a tar.gz file, but when I try to extract using tar xvf, xzvf, gunzip, it shows not a gzip archive. However, if I try to rename it to just a tar, it will show not a tar archive.
I'm slightly confused here as I'm running out of options, if anyone has any ideas. That would rock. It's on CentOS.