Created
November 7, 2014 19:22
-
-
Save jmakeig/7bee945e8bb4779c73f7 to your computer and use it in GitHub Desktop.
tar up a Subversion directory
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
# -f needs to be the last param or you'll get "Cannot stat: No such file of directory" | |
# --exclude-vcs doesn't work on OS X 10.9.5, thus --exclude=.svn | |
# * means all child files/directories, but not this one. This is useful for excluding "trunk". | |
tar --exclude=.svn -czvf ~/Desktop/archive.tar.gz * | |
# Verify the above worked | |
tar -tzvf ~/Desktop/archive.tar.gz | less |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment