Skip to content

Instantly share code, notes, and snippets.

@jmakeig
Created November 7, 2014 19:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmakeig/7bee945e8bb4779c73f7 to your computer and use it in GitHub Desktop.
Save jmakeig/7bee945e8bb4779c73f7 to your computer and use it in GitHub Desktop.
tar up a Subversion directory
# -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