Compress/Uncompress in Linux

Standard

Compress:

tar -zcvf mydb.tar.gz mydb.sql

Decompress:

tar -zxvf mydb.tar.gz