Compress and extract tar.gz files

Compress

tar -czvf backup.tar.gz /webapps/myapp/

Extract

tar -xzvf backup.tar.gz

Original source: https://www.howtogeek.com/248780/how-to-compress-and-extract-files-using-the-tar-command-on-linux/

Published
Categorised as Blog

Leave a comment

Your email address will not be published. Required fields are marked *