Last active
July 25, 2016 18:01
-
-
Save ConradStack/19ed5cd4784c807d5a337d0e7c03399f to your computer and use it in GitHub Desktop.
Excluding files from tarball creation
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
#!/bin/bash | |
# From: http://www.cyberciti.biz/faq/exclude-certain-files-when-creating-a-tarball-using-tar-command/ | |
tar --exclude-vcs --exclude='nohup.out' -cjf ~/tmp/whatever.tar.bz2 ./* | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment