Howto compress using tar, zip, ... - Howto's | vitrubio.net

Howto compress using tar, zip, ...

using tar

compress

tar -czvf final.tar.gz origin/path/files

excluding files

exclude always before the source

tar --exclude='/path/to/excluded/file' -czvf destination.tar.gz /origin/path/files

extract

tar -xzvf final.tar.gz