Text Size
Wednesday, October 22, 2014

31.10.12

tar files without hidden .svn folders

Create a tar ball without hidden folders including .svn directories, use this command:

  • Step 1, go to the folder your want to create a tar ball, in this example I will use a folder named "zriel", cd zriel
  • tar cvfz  ../zriel.tar.gz --exclude='.*' *
  • This will create a file zriel.tar.gz in the previous directory

The result will be:

zriel/  { directory }
zriel.tar.gz { tar ball }

Add comment


Security code
Refresh

Copyright © 2014 by Mike Zriel - Zriel.com