Created
November 20, 2017 14:07
-
-
Save crichardson9/cbecb7a5b42c13926dd8034554009d61 to your computer and use it in GitHub Desktop.
Create TAR
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create | |
tar -czf archive.tar.gz mydir/ --exclude='file1' | |
tar -czvf archive.tar.gz /home/username/public_html/ | |
--exclude='/home/username/public_html/media' | |
--exclude='/home/username/public_html/var' | |
# Extract | |
tar -xzf foo.tar.gz | |
extract gzipped foo.tar.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment