I am trying to get a dump from MySQL to my local client. This is what I have now:
mysqldump -u $MyUSER -h $MyHOST -p$MyPASS $db | gunzip -9 > $FILE
I want it to be .tar.gz, not gunzip archive. I have shell access on the local client, but not on the server. So, I can not make remote tar and copy it here. So, there is a way to connect gzip to tar.gz. (Currently .gz is not recognized as a tarball.)
Thanks.
source share