tar how to creat archive code example
Example 1: create tar gz file from directory
tar -czf tarball.tar.gz my_directory/
Example 2: create gz in ubuntu
gzip -9 yourName_db.sql
tar -czf tarball.tar.gz my_directory/
gzip -9 yourName_db.sql