Skip to content

Instantly share code, notes, and snippets.

@seanbuscay
Created May 16, 2013 19:10
Show Gist options
  • Save seanbuscay/5594249 to your computer and use it in GitHub Desktop.
Save seanbuscay/5594249 to your computer and use it in GitHub Desktop.
Tar commands
; Create a Tar of All in Directory
tar cvf backup.tar . 
; Untar
 tar xvf filename.tar
; Exclude files
tar --exclude='file1' --exclude='patter*' --exclude='file2'
; Exclude VCS files
tar cvf backup.tar . --exclude-vcs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment