Last active
March 13, 2018 10:06
-
-
Save tadone/f7a40839eecdb4a14f5bafdc322b51f0 to your computer and use it in GitHub Desktop.
[tar --exclude] Exclude some folder
This file contains hidden or 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
# Exclude folder from tar | |
$ tar --exclude='./folder' --exclude='./upload/folder2' -zcvf /backup/filename.tgz . | |
# Make sure to put --exclude before the source and destination items. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment