How to backup files using tar

To create tar:

tar czvf backup.tar.gz foldername/
tar czvf everything.tar.gz *

To extract out:

tar -zxvf extractme.tar.gz

Leave a Reply

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

Scroll to top