How to extract different kinds of archives.
1. To extract .tar.xz use: $ tar -xf some-name.tar.xz
2. To extract .zip tar is not suitable. Use unzip tool.
3. How to make .gzip $ tar -czvf db.tar.gz exported-database.sql