Create archive:

tar -czvf compressed_file.tar.gz original_file.sql

Extract files:

tar -xzvf compressed_file.tar.gz