Making a tarball and adding a mysqldump to it then naming it as example.tar:
shell> tar cvf example.tar dump.sql
Making a tarball and adding all files in the current directory then naming it as example.tar:
shell> tar cvf example.tar *
Compressing the tarball by zipping it (.gz):
shell> gzip example.tar
Restoring a tarball gzip file example.tar.gz
shell> gunzip example.tar.gz
shell> tar xvf example.tar
Leave a comment