Last active
December 7, 2015 08:43
-
-
Save hamsterbacke23/1d7e1bdd62bf57a01eb4 to your computer and use it in GitHub Desktop.
tar exclude
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
tar -cvzf ./backup_$(date +"%Y%m%d").tgz ./ --exclude='*.tgz' --exclude './zugang.txt' --exclude './tmp/*' --exclude './logs/*' --exclude './var/*' --exclude './htdocs/build/*' --exclude './.git/*' --exclude './node_modules' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment